From 4e7545ff685444e5c2837c159916cae1a2de4ede Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 18 Sep 2015 15:51:28 +0200 Subject: [PATCH] libcap: fix build on non-linux systems Signed-off-by: Felix Fietkau --- libs/libcap/patches/100-portability.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 libs/libcap/patches/100-portability.patch diff --git a/libs/libcap/patches/100-portability.patch b/libs/libcap/patches/100-portability.patch new file mode 100644 index 0000000000..735a97396b --- /dev/null +++ b/libs/libcap/patches/100-portability.patch @@ -0,0 +1,19 @@ +--- a/libcap/_makenames.c ++++ b/libcap/_makenames.c +@@ -7,7 +7,6 @@ + + #include + #include +-#include + + /* + * #include 'sed' generated array +@@ -22,7 +21,7 @@ struct { + }; + + /* this should be more than big enough (factor of three at least) */ +-const char *pointers[8*sizeof(struct __user_cap_data_struct)]; ++const char *pointers[8*12]; + + int main(void) + { -- 2.30.2