ebtables: fix musl build issues
[openwrt/openwrt.git] / package / network / utils / ebtables / patches / 100-musl_fix.patch
1 --- a/extensions/ebt_among.c
2 +++ b/extensions/ebt_among.c
3 @@ -13,7 +13,6 @@
4 #include <ctype.h>
5 #include <unistd.h>
6 #include "../include/ebtables_u.h"
7 -#include <netinet/ether.h>
8 #include "../include/ethernetdb.h"
9 #include <linux/if_ether.h>
10 #include <linux/netfilter_bridge/ebt_among.h>
11 --- a/extensions/ebt_arpreply.c
12 +++ b/extensions/ebt_arpreply.c
13 @@ -12,7 +12,6 @@
14 #include <string.h>
15 #include <getopt.h>
16 #include "../include/ebtables_u.h"
17 -#include <netinet/ether.h>
18 #include <linux/netfilter_bridge/ebt_arpreply.h>
19
20 static int mac_supplied;
21 --- a/extensions/ebt_nat.c
22 +++ b/extensions/ebt_nat.c
23 @@ -11,7 +11,6 @@
24 #include <string.h>
25 #include <getopt.h>
26 #include "../include/ebtables_u.h"
27 -#include <netinet/ether.h>
28 #include <linux/netfilter_bridge/ebt_nat.h>
29
30 static int to_source_supplied, to_dest_supplied;
31 --- a/useful_functions.c
32 +++ b/useful_functions.c
33 @@ -25,7 +25,6 @@
34 #include "include/ebtables_u.h"
35 #include "include/ethernetdb.h"
36 #include <stdio.h>
37 -#include <netinet/ether.h>
38 #include <string.h>
39 #include <stdlib.h>
40 #include <getopt.h>
41 --- a/include/ebtables_u.h
42 +++ b/include/ebtables_u.h
43 @@ -23,6 +23,7 @@
44
45 #ifndef EBTABLES_U_H
46 #define EBTABLES_U_H
47 +#include <sys/types.h>
48 #include <netinet/in.h>
49 #include <linux/netfilter_bridge/ebtables.h>
50 #include <linux/netfilter/x_tables.h>