arptables: fix musl build issues
[librecmc/librecmc.git] / package / network / utils / arptables / patches / 200-musl_fixes.patch
1 --- a/include/arptables.h
2 +++ b/include/arptables.h
3 @@ -1,6 +1,7 @@
4  #ifndef _ARPTABLES_USER_H
5  #define _ARPTABLES_USER_H
6  
7 +#include <sys/types.h>
8  #include "arptables_common.h"
9  #include "libarptc/libarptc.h"
10  
11 --- a/arptables.c
12 +++ b/arptables.c
13 @@ -43,6 +43,7 @@
14  #include <arptables.h>
15  #include <fcntl.h>
16  #include <sys/wait.h>
17 +#include <net/ethernet.h>
18  
19  #ifndef TRUE
20  #define TRUE 1
21 --- a/include/libarptc/arpt_kernel_headers.h
22 +++ b/include/libarptc/arpt_kernel_headers.h
23 @@ -5,7 +5,7 @@
24  
25  #include <limits.h>
26  
27 -#if defined(__GLIBC__) && __GLIBC__ == 2
28 +#if 1
29  #include <netinet/ip.h>
30  #include <netinet/in.h>
31  #include <netinet/ip_icmp.h>