libseccomp: work-around prctl.h mess
authorDaniel Golle <daniel@makrotopia.org>
Thu, 4 Jun 2015 12:44:40 +0000 (14:44 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Thu, 4 Jun 2015 12:44:40 +0000 (14:44 +0200)
musl doesn't allow including both, sys/prctl.h and linux/prctl.h.
Thus include linux/prctl.h only on GLIBC systems (that includes
uClibc which defines __GLIBC__)

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
libs/libseccomp/patches/100-dont-use-linux-prctl.h-with-musl.patch [new file with mode: 0644]

diff --git a/libs/libseccomp/patches/100-dont-use-linux-prctl.h-with-musl.patch b/libs/libseccomp/patches/100-dont-use-linux-prctl.h-with-musl.patch
new file mode 100644 (file)
index 0000000..ded5b0a
--- /dev/null
@@ -0,0 +1,14 @@
+Index: libseccomp-2.2.1/src/system.h
+===================================================================
+--- libseccomp-2.2.1.orig/src/system.h
++++ libseccomp-2.2.1/src/system.h
+@@ -23,7 +23,9 @@
+ #define _SYSTEM_H
+ #include <linux/filter.h>
++#ifdef __GLIBC__
+ #include <linux/prctl.h>
++#endef
+ #include "configure.h"