mirror of
https://git.openwrt.org/feed/packages.git
synced 2024-06-13 10:59:13 +02:00
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>
This commit is contained in:
parent
93584e3cbe
commit
e1a1eed25f
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user