From e1a1eed25fcc74ad928cb5b2b1116245181209f2 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Thu, 4 Jun 2015 14:44:40 +0200 Subject: [PATCH] libseccomp: work-around prctl.h mess 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 --- .../100-dont-use-linux-prctl.h-with-musl.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 libs/libseccomp/patches/100-dont-use-linux-prctl.h-with-musl.patch 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 index 000000000..ded5b0abe --- /dev/null +++ b/libs/libseccomp/patches/100-dont-use-linux-prctl.h-with-musl.patch @@ -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 ++#ifdef __GLIBC__ + #include ++#endef + + #include "configure.h" +