git.99rst.org
/
openwrt-packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
c6b65ce
)
libcap: fix build on non-linux systems
author
Felix Fietkau
<redacted>
Fri, 18 Sep 2015 13:51:28 +0000
(15:51 +0200)
committer
Felix Fietkau
<redacted>
Fri, 18 Sep 2015 13:51:28 +0000
(15:51 +0200)
Signed-off-by: Felix Fietkau <redacted>
libs/libcap/patches/100-portability.patch
[new file with mode: 0644]
patch
|
blob
diff --git a/libs/libcap/patches/100-portability.patch
b/libs/libcap/patches/100-portability.patch
new file mode 100644
(file)
index 0000000..
735a973
--- /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 <stdio.h>
+ #include <stdlib.h>
+-#include <sys/capability.h>
+
+ /*
+ * #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)
+ {
git clone https://git.99rst.org/PROJECT