lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

commit e1a1eed25fcc74ad928cb5b2b1116245181209f2
parent 93584e3cbea649fdb537544957c71638b283a36f
Author: Daniel Golle <daniel@makrotopia.org>
Date:   Thu,  4 Jun 2015 14:44:40 +0200

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 <daniel@makrotopia.org>

Diffstat:
Alibs/libseccomp/patches/100-dont-use-linux-prctl.h-with-musl.patch | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

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 @@ -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" +