xref: /OK3568_Linux_fs/buildroot/package/rp-pppoe/0001-krn-plugin.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1[Fabrice: update patch for 3.14]
2Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
3diff -Nura rp-pppoe-3.11.orig/src/configure rp-pppoe-3.11/src/configure
4--- rp-pppoe-3.11.orig/src/configure	2012-08-21 10:01:10.536440032 -0300
5+++ rp-pppoe-3.11/src/configure	2012-08-21 10:01:45.353442397 -0300
6@@ -4517,7 +4517,7 @@
7 modprobe pppoe > /dev/null 2>&1
8 fi
9 if test "$cross_compiling" = yes; then :
10-  ac_cv_linux_kernel_pppoe=no; echo "cross-compiling, default: "
11+  ac_cv_linux_kernel_pppoe=yes; echo "cross-compiling, default: "
12 else
13   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14 /* end confdefs.h.  */
15diff -Nura rp-pppoe-3.11.orig/src/pppoe-server.c rp-pppoe-3.11/src/pppoe-server.c
16--- rp-pppoe-3.11.orig/src/pppoe-server.c	2012-08-21 10:01:10.535440032 -0300
17+++ rp-pppoe-3.11/src/pppoe-server.c	2012-08-21 10:02:02.597443569 -0300
18@@ -20,6 +20,9 @@
19
20 #include "config.h"
21
22+/* Patched hack to make this cross compile */
23+#define HAVE_LINUX_KERNEL_PPPOE 1
24+
25 #if defined(HAVE_NETPACKET_PACKET_H) || defined(HAVE_LINUX_IF_PACKET_H)
26 #define _POSIX_SOURCE 1 /* For sigaction defines */
27 #endif
28