aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-03-29 04:29:56 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-03-29 04:29:56 +0000
commit1e80ec959ac6cbaf3d49a98f72d69b619e244f25 (patch)
treefe4c9d51db5370be034d35e90e14ed2c62379a25 /package/network/utils
parentf19ffb31b58a35384c0b4b93baa1adc51b044e84 (diff)
downloadupstream-1e80ec959ac6cbaf3d49a98f72d69b619e244f25.tar.gz
upstream-1e80ec959ac6cbaf3d49a98f72d69b619e244f25.tar.bz2
upstream-1e80ec959ac6cbaf3d49a98f72d69b619e244f25.zip
arptables: fix musl build issues
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45109 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/utils')
-rw-r--r--package/network/utils/arptables/patches/200-musl_fixes.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/package/network/utils/arptables/patches/200-musl_fixes.patch b/package/network/utils/arptables/patches/200-musl_fixes.patch
new file mode 100644
index 0000000000..3a4ba3fb03
--- /dev/null
+++ b/package/network/utils/arptables/patches/200-musl_fixes.patch
@@ -0,0 +1,31 @@
+--- a/include/arptables.h
++++ b/include/arptables.h
+@@ -1,6 +1,7 @@
+ #ifndef _ARPTABLES_USER_H
+ #define _ARPTABLES_USER_H
+
++#include <sys/types.h>
+ #include "arptables_common.h"
+ #include "libarptc/libarptc.h"
+
+--- a/arptables.c
++++ b/arptables.c
+@@ -43,6 +43,7 @@
+ #include <arptables.h>
+ #include <fcntl.h>
+ #include <sys/wait.h>
++#include <net/ethernet.h>
+
+ #ifndef TRUE
+ #define TRUE 1
+--- a/include/libarptc/arpt_kernel_headers.h
++++ b/include/libarptc/arpt_kernel_headers.h
+@@ -5,7 +5,7 @@
+
+ #include <limits.h>
+
+-#if defined(__GLIBC__) && __GLIBC__ == 2
++#if 1
+ #include <netinet/ip.h>
+ #include <netinet/in.h>
+ #include <netinet/ip_icmp.h>