rp-pppoe: redo glibc patch 6296/head
authorEneas U de Queiroz <cote2004-github@yahoo.com>
Thu, 14 Jun 2018 15:00:55 +0000 (12:00 -0300)
committerEneas U de Queiroz <cote2004-github@yahoo.com>
Thu, 14 Jun 2018 15:00:55 +0000 (12:00 -0300)
Previous fix broke compilation with kernel < 4.8

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
net/rp-pppoe/Makefile
net/rp-pppoe/patches/140-glibc-avoid-include-linux_in.h.patch

index 3d6726b40a466081b41dc3debfa72c758551ba8a..8b11cea5422f1bf69dc0f19af111ccfb201213bf 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=rp-pppoe
 PKG_VERSION:=3.12
-PKG_RELEASE:=5
+PKG_RELEASE:=6
 PKG_MAINTAINER:=Daniel Dickinson <lede@cshore.thecshore.com>
 PKG_LICENSE:=LGPL-2.0+
 
index 0a766f97e6936c7ff909f8a032b5d27a41d5b5ab..de3244fddfeeb88126aac8ce281eadfb35abb3b8 100644 (file)
@@ -1,12 +1,12 @@
 --- a/src/pppoe.h
 +++ b/src/pppoe.h
-@@ -131,7 +131,9 @@ typedef unsigned long UINT32_t;
- #include <linux/if_ether.h>
+@@ -132,6 +132,9 @@ typedef unsigned long UINT32_t;
  #endif
  
-+#ifndef __GLIBC__
  #include <netinet/in.h>
-+#endif
++/* avoid redefinitions if <linux/in.h> and <linux/in6.h> get included. */
++#define _LINUX_IN_H
++#define _LINUX_IN6_H
  
  #ifdef HAVE_NETINET_IF_ETHER_H
  #include <sys/types.h>