Do not inlcude <netinet/in.h> when using glibc to avoid various
redefinitions.
Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
(cherry-picked from
0c995cabe7d1e8d6e695772848d1d54f0e978bf9)
PKG_NAME:=rp-pppoe
PKG_VERSION:=3.12
-PKG_RELEASE:=4
+PKG_RELEASE:=5
PKG_MAINTAINER:=Daniel Dickinson <lede@cshore.thecshore.com>
PKG_LICENSE:=LGPL-2.0+
--- /dev/null
+--- a/src/pppoe.h
++++ b/src/pppoe.h
+@@ -131,7 +131,9 @@ typedef unsigned long UINT32_t;
+ #include <linux/if_ether.h>
+ #endif
+
++#ifndef __GLIBC__
+ #include <netinet/in.h>
++#endif
+
+ #ifdef HAVE_NETINET_IF_ETHER_H
+ #include <sys/types.h>