summaryrefslogtreecommitdiffstats
path: root/patches/systemd-216/0001-missing-defined-extra-clock-ids.patch
blob: 76e7eb94c234610026ba86a03aeb66c30b64a799 (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/shared/missing.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/src/shared/missing.h b/src/shared/missing.h
index 3ff1a2172083..1ba0104c4aab 100644
--- a/src/shared/missing.h
+++ b/src/shared/missing.h
@@ -550,6 +550,16 @@ static inline int setns(int fd, int nstype) {
 #define IFLA_BRIDGE_MAX (__IFLA_BRIDGE_MAX - 1)
 #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