summaryrefslogtreecommitdiffstats
path: root/patches/systemd-229/0002-missing-add-BPF_XOR.patch
blob: a2a4a88c990cd82ad6e6e98723752585182e52f1 (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
From: Michael Olbrich <m.olbrich@pengutronix.de>
Date: Thu, 21 Aug 2014 12:30:15 +0200
Subject: [PATCH] missing: add BPF_XOR

BPF_XOR was introduced in kernel 3.7

Not for upstream, but needed for host-systemd.

Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
---
 src/basic/missing.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/basic/missing.h b/src/basic/missing.h
index d73a73f64088..3d9ba1464608 100644
--- a/src/basic/missing.h
+++ b/src/basic/missing.h
@@ -970,6 +970,10 @@ static inline int setns(int fd, int nstype) {
 #  define BPF_XOR 0xa0
 #endif
 
+#ifndef BPF_XOR
+#  define BPF_XOR 0xa0
+#endif
+
 /* Note that LOOPBACK_IFINDEX is currently not exported by the
  * kernel/glibc, but hardcoded internally by the kernel.  However, as
  * it is exported to userspace indirectly via rtnetlink and the