d364e8684ce7fc2bf274757d1323ce4c829be664
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / rp-pppoe / 0002-krn-plugin.patch
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
4 @@ -4517,7 +4517,7 @@
5  modprobe pppoe > /dev/null 2>&1
6  fi
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: "
10  else
11    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12  /* end confdefs.h.  */
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
16 @@ -20,6 +20,9 @@
17  
18  #include "config.h"
19  
20 +/* Patched hack to make this cross compile */
21 +#define HAVE_LINUX_KERNEL_PPPOE 1
22 +
23  #if defined(HAVE_NETPACKET_PACKET_H) || defined(HAVE_LINUX_IF_PACKET_H)
24  #define _POSIX_SOURCE 1 /* For sigaction defines */
25  #endif