Browse Source

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>
lilik-openwrt-22.03
Daniel Golle 10 years ago
parent
commit
e1a1eed25f
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      libs/libseccomp/patches/100-dont-use-linux-prctl.h-with-musl.patch

+ 14
- 0
libs/libseccomp/patches/100-dont-use-linux-prctl.h-with-musl.patch View File

@ -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…
Cancel
Save