packages/net/rp-pppoe/patches/140-glibc-avoid-include-linux_in.h.patch
Eneas U de Queiroz 0c995cabe7 rp-pppoe: Fixed compilation with glibc
Do not inlcude <netinet/in.h> when using glibc to avoid various
redefinitions.

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2018-05-23 14:24:35 -03:00

12 lines
237 B
Diff

--- 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>