summaryrefslogtreecommitdiffstats
path: root/patches/systemd-230/0001-missing-defined-extra-clock-ids.patch
blob: 9a8dc7d82880f3157f4b4ff6fc0b6ac6b7940825 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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