1 diff -Nura rp-pppoe-3.11.orig/src/configure rp-pppoe-3.11/src/configure
2 --- rp-pppoe-3.11.orig/src/configure 2012-08-21 10:01:10.536440032 -0300
3 +++ rp-pppoe-3.11/src/configure 2012-08-21 10:01:45.353442397 -0300
5 modprobe pppoe > /dev/null 2>&1
7 if test "$cross_compiling" = yes; then :
8 - ac_cv_linux_kernel_pppoe=no; $ECHO "cross-compiling, default: "
9 + ac_cv_linux_kernel_pppoe=yes; $ECHO "cross-compiling, default: "
11 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13 diff -Nura rp-pppoe-3.11.orig/src/pppoe-server.c rp-pppoe-3.11/src/pppoe-server.c
14 --- rp-pppoe-3.11.orig/src/pppoe-server.c 2012-08-21 10:01:10.535440032 -0300
15 +++ rp-pppoe-3.11/src/pppoe-server.c 2012-08-21 10:02:02.597443569 -0300
20 +/* Patched hack to make this cross compile */
21 +#define HAVE_LINUX_KERNEL_PPPOE 1
23 #if defined(HAVE_NETPACKET_PACKET_H) || defined(HAVE_LINUX_IF_PACKET_H)
24 #define _POSIX_SOURCE 1 /* For sigaction defines */