xtables-addons: FreeBSD build fix
[feed/packages.git] / net / rp-pppoe / patches / 120-use-linux-ether-not-netinet.patch
1 --- a/src/configure
2 +++ b/src/configure
3 @@ -3676,7 +3676,7 @@ fi
4 done
5
6
7 -for ac_header in fcntl.h sys/dlpi.h sys/ioctl.h sys/time.h syslog.h unistd.h net/if_arp.h netinet/if_ether.h getopt.h sys/uio.h sys/param.h fcntl.h net/bpf.h netpacket/packet.h net/ethernet.h asm/types.h linux/if_packet.h linux/if_ether.h sys/socket.h sys/cdefs.h net/if.h net/if_dl.h net/if_ether.h net/if_types.h netinet/if_ether.h net/if_types.h net/if_dl.h
8 +for ac_header in fcntl.h sys/dlpi.h sys/ioctl.h sys/time.h syslog.h unistd.h net/if_arp.h getopt.h sys/uio.h sys/param.h fcntl.h net/bpf.h netpacket/packet.h asm/types.h linux/if_packet.h linux/if_ether.h sys/socket.h sys/cdefs.h net/if.h net/if_dl.h net/if_types.h net/if_types.h net/if_dl.h
9 do :
10 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12 --- a/src/if.c
13 +++ b/src/if.c
14 @@ -30,10 +30,6 @@ static char const RCSID[] =
15 #include <linux/if_packet.h>
16 #endif
17
18 -#ifdef HAVE_NET_ETHERNET_H
19 -#include <net/ethernet.h>
20 -#endif
21 -
22 #ifdef HAVE_ASM_TYPES_H
23 #include <asm/types.h>
24 #endif
25 --- a/src/plugin.c
26 +++ b/src/plugin.c
27 @@ -49,7 +49,6 @@ static char const RCSID[] =
28 #include <unistd.h>
29 #include <fcntl.h>
30 #include <signal.h>
31 -#include <net/ethernet.h>
32 #include <net/if_arp.h>
33 #include <linux/ppp_defs.h>
34 #include <linux/if_pppox.h>