[systemd-devel] [PATCH] missing: add BPF_XOR

Michael Olbrich m.olbrich at pengutronix.de
Thu Aug 21 03:38:08 PDT 2014


BPF_XOR was introduced in kernel 3.7
---

This fixes compiling systemd for me. I'm not sure about the implications of
this. I'm not sure what happens if the code using it is executed on a linux
kernel < 3.7

Michael

 src/shared/missing.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/shared/missing.h b/src/shared/missing.h
index 3ff1a21..1321db1 100644
--- a/src/shared/missing.h
+++ b/src/shared/missing.h
@@ -589,3 +589,7 @@ static inline int setns(int fd, int nstype) {
 #ifndef NET_NAME_RENAMED
 #  define NET_NAME_RENAMED 4
 #endif
+
+#ifndef BPF_XOR
+#  define BPF_XOR 0xa0
+#endif
-- 
2.1.0.rc1



More information about the systemd-devel mailing list