diff options
author | Eneas U de Queiroz <cote2004-github@yahoo.com> | 2018-06-14 12:00:55 -0300 |
---|---|---|
committer | Eneas U de Queiroz <cote2004-github@yahoo.com> | 2018-06-14 12:00:55 -0300 |
commit | e40d67a48f6dc82c5e52f07859251460d6064a09 (patch) | |
tree | 505c477b9c4fc10d902f1b4ffcfbcbaca828ff2c /net/rp-pppoe/patches | |
parent | c44ccef6f4c2242d2517f8debe78ab371a0edffa (diff) |
rp-pppoe: redo glibc patch
Previous fix broke compilation with kernel < 4.8
Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
Diffstat (limited to 'net/rp-pppoe/patches')
-rw-r--r-- | net/rp-pppoe/patches/140-glibc-avoid-include-linux_in.h.patch | 8 |
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> |