First Commit
[librecmc/package-feed.git] / net / rp-pppoe / patches / 120-use-linux-ether-not-netinet.patch
1 Index: rp-pppoe-3.11/src/configure
2 ===================================================================
3 --- rp-pppoe-3.11.orig/src/configure    2016-05-21 23:42:58.142423086 -0400
4 +++ rp-pppoe-3.11/src/configure 2016-05-21 23:42:58.178423086 -0400
5 @@ -3646,7 +3646,7 @@
6  done
7  
8  
9 -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
10 +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
11  do :
12    as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13  ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14 Index: rp-pppoe-3.11/src/if.c
15 ===================================================================
16 --- rp-pppoe-3.11.orig/src/if.c 2012-08-17 14:31:25.000000000 -0400
17 +++ rp-pppoe-3.11/src/if.c      2016-05-21 23:45:13.546423086 -0400
18 @@ -30,10 +30,6 @@
19  #include <linux/if_packet.h>
20  #endif
21  
22 -#ifdef HAVE_NET_ETHERNET_H
23 -#include <net/ethernet.h>
24 -#endif
25 -
26  #ifdef HAVE_ASM_TYPES_H
27  #include <asm/types.h>
28  #endif
29 Index: rp-pppoe-3.11/src/plugin.c
30 ===================================================================
31 --- rp-pppoe-3.11.orig/src/plugin.c     2012-08-17 14:31:25.000000000 -0400
32 +++ rp-pppoe-3.11/src/plugin.c  2016-05-21 23:43:55.314423086 -0400
33 @@ -49,7 +49,6 @@
34  #include <unistd.h>
35  #include <fcntl.h>
36  #include <signal.h>
37 -#include <net/ethernet.h>
38  #include <net/if_arp.h>
39  #include <linux/ppp_defs.h>
40  #include <linux/if_pppox.h>