packages/net/rp-pppoe/patches/140-glibc-avoid-include-linux_in.h.patch
Eneas U de Queiroz e40d67a48f rp-pppoe: redo glibc patch
Previous fix broke compilation with kernel < 4.8

Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
2018-06-14 12:00:55 -03:00

12 lines
299 B
Diff

--- a/src/pppoe.h
+++ b/src/pppoe.h
@@ -132,6 +132,9 @@ typedef unsigned long UINT32_t;
#endif
#include <netinet/in.h>
+/* 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>