mirror of
https://github.com/openwrt/packages.git
synced 2026-04-19 22:58:41 +04: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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user