aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils/arptables/patches/200-musl_fixes.patch
blob: 3a4ba3fb03ee460c1c6321b3a8d58542f731d0c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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>