diff options
Diffstat (limited to 'patches/systemd-230/0004-missing-define-O_PATH-and-AT_EMPTY_PATH.patch')
-rw-r--r-- | patches/systemd-230/0004-missing-define-O_PATH-and-AT_EMPTY_PATH.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/patches/systemd-230/0004-missing-define-O_PATH-and-AT_EMPTY_PATH.patch b/patches/systemd-230/0004-missing-define-O_PATH-and-AT_EMPTY_PATH.patch new file mode 100644 index 000000000..f0757cc9b --- /dev/null +++ b/patches/systemd-230/0004-missing-define-O_PATH-and-AT_EMPTY_PATH.patch @@ -0,0 +1,44 @@ +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/basic/missing.h | 7 +++++++ + src/basic/xattr-util.c | 1 + + 2 files changed, 8 insertions(+) + +diff --git a/src/basic/missing.h b/src/basic/missing.h +index 5f7d9c65d816..187b16757887 100644 +--- a/src/basic/missing.h ++++ b/src/basic/missing.h +@@ -842,6 +842,13 @@ struct btrfs_ioctl_quota_ctl_args { + #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 + #endif +diff --git a/src/basic/xattr-util.c b/src/basic/xattr-util.c +index 8256899edae3..dc64a9aeb4c8 100644 +--- a/src/basic/xattr-util.c ++++ b/src/basic/xattr-util.c +@@ -25,6 +25,7 @@ + #include <sys/time.h> + #include <sys/xattr.h> + ++#include "missing.h" + #include "alloc-util.h" + #include "fd-util.h" + #include "macro.h" |