summaryrefslogtreecommitdiff
path: root/package/ppp/patches/patch-pppd_plugins_rp-pppoe_pppoe-discovery_c
diff options
context:
space:
mode:
Diffstat (limited to 'package/ppp/patches/patch-pppd_plugins_rp-pppoe_pppoe-discovery_c')
-rw-r--r--package/ppp/patches/patch-pppd_plugins_rp-pppoe_pppoe-discovery_c22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/ppp/patches/patch-pppd_plugins_rp-pppoe_pppoe-discovery_c b/package/ppp/patches/patch-pppd_plugins_rp-pppoe_pppoe-discovery_c
new file mode 100644
index 000000000..6b79ad968
--- /dev/null
+++ b/package/ppp/patches/patch-pppd_plugins_rp-pppoe_pppoe-discovery_c
@@ -0,0 +1,22 @@
+--- ppp-2.4.5.orig/pppd/plugins/rp-pppoe/pppoe-discovery.c 2009-11-16 23:26:07.000000000 +0100
++++ ppp-2.4.5/pppd/plugins/rp-pppoe/pppoe-discovery.c 2014-03-17 16:32:55.000000000 +0100
+@@ -27,10 +27,6 @@
+ #include <linux/if_packet.h>
+ #endif
+
+-#ifdef HAVE_NET_ETHERNET_H
+-#include <net/ethernet.h>
+-#endif
+-
+ #ifdef HAVE_ASM_TYPES_H
+ #include <asm/types.h>
+ #endif
+@@ -55,6 +51,8 @@ void die(int status)
+ exit(status);
+ }
+
++#define error(x...) fprintf(stderr, x)
++
+ /* Initialize frame types to RFC 2516 values. Some broken peers apparently
+ use different frame types... sigh... */
+