From: Nils Rennebarth <nils.renneba...@teldat.de>

The test for the if_pppox.h header file needs to also include linux/in6.h
(ipv6 support).

Fixes openwrt ticket #13321

Signed-off-by: Nils Rennebarth <nils.renneba...@teldat.com>
---
 net/rp-pppoe/patches/100-configure.patch | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/net/rp-pppoe/patches/100-configure.patch 
b/net/rp-pppoe/patches/100-configure.patch
index 62e9222..d45593a 100644
--- a/net/rp-pppoe/patches/100-configure.patch
+++ b/net/rp-pppoe/patches/100-configure.patch
@@ -9,7 +9,7 @@
  "
  if test "x$ac_cv_header_linux_if_h" = x""yes; then :
    cat >>confdefs.h <<_ACEOF
-@@ -3675,10 +3675,10 @@ done
+@@ -3675,10 +3675,11 @@ done
  for ac_header in linux/if_pppox.h
  do :
    ac_fn_c_check_header_compile "$LINENO" "linux/if_pppox.h" 
"ac_cv_header_linux_if_pppox_h" "
@@ -21,10 +21,11 @@
 +#include <net/ethernet.h>
 +#include <linux/if.h>
 +#include <linux/in.h>
++#include <linux/in6.h>
  
  "
  if test "x$ac_cv_header_linux_if_pppox_h" = x""yes; then :
-@@ -4611,7 +4611,7 @@ esac
+@@ -4611,7 +4612,7 @@ esac
  $as_echo_n "checking packing order of bit fields... " >&6; }
  if test "${rpppoe_cv_pack_bitfields+set}" != set ; then
  if test "$cross_compiling" = yes; then :
-- 
1.8.1.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to