lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

commit 4e7545ff685444e5c2837c159916cae1a2de4ede
parent c6b65ce69365a2f04ff252ecd3e23e00de81cf5e
Author: Felix Fietkau <nbd@openwrt.org>
Date:   Fri, 18 Sep 2015 15:51:28 +0200

libcap: fix build on non-linux systems

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

Diffstat:
Alibs/libcap/patches/100-portability.patch | 19+++++++++++++++++++
1 file changed, 19 insertions(+), 0 deletions(-)

diff --git a/libs/libcap/patches/100-portability.patch 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) + {