summaryrefslogtreecommitdiffstats
path: root/patches/systemd-216/0002-missing-add-BPF_XOR.patch
blob: 30113789f75f314c501abfd941a921b240b8dad2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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

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

diff --git a/src/shared/missing.h b/src/shared/missing.h
index 1ba0104c4aab..b3f501effaea 100644
--- a/src/shared/missing.h
+++ b/src/shared/missing.h
@@ -599,3 +599,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