From 0c995cabe7d1e8d6e695772848d1d54f0e978bf9 Mon Sep 17 00:00:00 2001 From: Eneas U de Queiroz Date: Wed, 23 May 2018 14:24:35 -0300 Subject: [PATCH] rp-pppoe: Fixed compilation with glibc Do not inlcude when using glibc to avoid various redefinitions. Signed-off-by: Eneas U de Queiroz --- net/rp-pppoe/Makefile | 2 +- .../patches/140-glibc-avoid-include-linux_in.h.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 net/rp-pppoe/patches/140-glibc-avoid-include-linux_in.h.patch diff --git a/net/rp-pppoe/Makefile b/net/rp-pppoe/Makefile index 49a2c742a..3d6726b40 100644 --- a/net/rp-pppoe/Makefile +++ b/net/rp-pppoe/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=rp-pppoe PKG_VERSION:=3.12 -PKG_RELEASE:=4 +PKG_RELEASE:=5 PKG_MAINTAINER:=Daniel Dickinson PKG_LICENSE:=LGPL-2.0+ diff --git a/net/rp-pppoe/patches/140-glibc-avoid-include-linux_in.h.patch b/net/rp-pppoe/patches/140-glibc-avoid-include-linux_in.h.patch new file mode 100644 index 000000000..0a766f97e --- /dev/null +++ b/net/rp-pppoe/patches/140-glibc-avoid-include-linux_in.h.patch @@ -0,0 +1,12 @@ +--- a/src/pppoe.h ++++ b/src/pppoe.h +@@ -131,7 +131,9 @@ typedef unsigned long UINT32_t; + #include + #endif + ++#ifndef __GLIBC__ + #include ++#endif + + #ifdef HAVE_NETINET_IF_ETHER_H + #include