aboutsummaryrefslogtreecommitdiff
path: root/net/rp-pppoe/patches
diff options
context:
space:
mode:
Diffstat (limited to 'net/rp-pppoe/patches')
-rw-r--r--net/rp-pppoe/patches/140-glibc-avoid-include-linux_in.h.patch8
1 files changed, 4 insertions, 4 deletions
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
index 0a766f97e..de3244fdd 100644
--- 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
@@ -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>