summaryrefslogtreecommitdiffstats
path: root/patches/systemd-220/0001-missing-defined-extra-clock-ids.patch
blob: f6acfae8c49d0150c11e5855ec2d679d68abbacb (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 8ca6f8edb62c..db6450a168ca 100644
--- a/src/shared/missing.h
+++ b/src/shared/missing.h
@@ -798,6 +798,16 @@ static inline int setns(int fd, int nstype) {
 #define NDA_MAX (__NDA_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