From: Daniel Golle Date: Thu, 4 Jun 2015 12:44:40 +0000 (+0200) Subject: libseccomp: work-around prctl.h mess X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e1a1eed25fcc74ad928cb5b2b1116245181209f2;p=feed%2Fpackages.git 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 --- 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 0000000000..ded5b0abe6 --- /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" +