summaryrefslogtreecommitdiffstats
path: root/patches/systemd-230/0001-missing-defined-extra-clock-ids.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/systemd-230/0001-missing-defined-extra-clock-ids.patch')
-rw-r--r--patches/systemd-230/0001-missing-defined-extra-clock-ids.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/patches/systemd-230/0001-missing-defined-extra-clock-ids.patch b/patches/systemd-230/0001-missing-defined-extra-clock-ids.patch
new file mode 100644
index 000000000..9a8dc7d82
--- /dev/null
+++ b/patches/systemd-230/0001-missing-defined-extra-clock-ids.patch
@@ -0,0 +1,34 @@
+From: Michael Olbrich <m.olbrich@pengutronix.de>
+Date: Thu, 19 Jun 2014 10:48:55 +0200
+Subject: [PATCH] missing: defined extra clock ids
+
+This is required for glibc <= 2.13
+
+Upstream requires glibc 2.14 but this is useful for host-systemd.
+
+Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
+---
+ src/basic/missing.h | 10 ++++++++++
+ 1 file changed, 10 insertions(+)
+
+diff --git a/src/basic/missing.h b/src/basic/missing.h
+index 651e41439511..e5554c6e1a22 100644
+--- a/src/basic/missing.h
++++ b/src/basic/missing.h
+@@ -832,6 +832,16 @@ struct btrfs_ioctl_quota_ctl_args {
+ #define RTA_PREF 20
+ #endif
+
++#ifndef CLOCK_BOOTTIME
++#define CLOCK_BOOTTIME 7
++#endif
++#ifndef CLOCK_REALTIME_ALARM
++#define CLOCK_REALTIME_ALARM 8
++#endif
++#ifndef CLOCK_BOOTTIME_ALARM
++#define CLOCK_BOOTTIME_ALARM 9
++#endif
++
+ #ifndef IPV6_UNICAST_IF
+ #define IPV6_UNICAST_IF 76
+ #endif