summaryrefslogtreecommitdiffstats
path: root/patches/systemd-220/0008-missing-define-O_PATH-and-AT_EMPTY_PATH.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/systemd-220/0008-missing-define-O_PATH-and-AT_EMPTY_PATH.patch')
-rw-r--r--patches/systemd-220/0008-missing-define-O_PATH-and-AT_EMPTY_PATH.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/patches/systemd-220/0008-missing-define-O_PATH-and-AT_EMPTY_PATH.patch b/patches/systemd-220/0008-missing-define-O_PATH-and-AT_EMPTY_PATH.patch
new file mode 100644
index 000000000..e5bc676bf
--- /dev/null
+++ b/patches/systemd-220/0008-missing-define-O_PATH-and-AT_EMPTY_PATH.patch
@@ -0,0 +1,30 @@
+From: Michael Olbrich <m.olbrich@pengutronix.de>
+Date: Tue, 2 Jun 2015 10:46:05 +0200
+Subject: [PATCH] missing: define O_PATH and AT_EMPTY_PATH
+
+This is required for glibc <= 2.15
+
+Upstream requires glibc 2.16 but this is useful for host-systemd.
+
+Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
+---
+ src/shared/missing.h | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/src/shared/missing.h b/src/shared/missing.h
+index 02dbb8628a6c..5574386a0628 100644
+--- a/src/shared/missing.h
++++ b/src/shared/missing.h
+@@ -838,6 +838,12 @@ static inline int setns(int fd, int nstype) {
+ #ifndef CLOCK_BOOTTIME_ALARM
+ #define CLOCK_BOOTTIME_ALARM 9
+ #endif
++#ifndef O_PATH
++#define O_PATH 010000000
++#endif
++#ifndef AT_EMPTY_PATH
++#define AT_EMPTY_PATH 0x1000 /* Allow empty relative pathname */
++#endif
+
+ #ifndef IPV6_UNICAST_IF
+ #define IPV6_UNICAST_IF 76