diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-11-11 14:27:33 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-11-11 15:12:31 -0500 |
commit | a8f9980e70713039baa28f2ba7dd9c67b6cffda9 (patch) | |
tree | eadfb03e107956d6be39e9c74f7bf5fe15f30e6e /net-dialup/rp-pppoe | |
parent | x11-themes/qtcurve: Added live ebuild based on work from seden overlay. (diff) | |
download | gentoo-a8f9980e70713039baa28f2ba7dd9c67b6cffda9.tar.gz gentoo-a8f9980e70713039baa28f2ba7dd9c67b6cffda9.tar.bz2 gentoo-a8f9980e70713039baa28f2ba7dd9c67b6cffda9.zip |
net-dialup/rp-pppoe: fix build w/linux-headers-4.8+
Diffstat (limited to 'net-dialup/rp-pppoe')
-rw-r--r-- | net-dialup/rp-pppoe/files/rp-pppoe-3.12-linux-headers.patch | 28 | ||||
-rw-r--r-- | net-dialup/rp-pppoe/rp-pppoe-3.12.ebuild | 1 |
2 files changed, 29 insertions, 0 deletions
diff --git a/net-dialup/rp-pppoe/files/rp-pppoe-3.12-linux-headers.patch b/net-dialup/rp-pppoe/files/rp-pppoe-3.12-linux-headers.patch new file mode 100644 index 000000000000..961eba396138 --- /dev/null +++ b/net-dialup/rp-pppoe/files/rp-pppoe-3.12-linux-headers.patch @@ -0,0 +1,28 @@ +the linux headers have started adding shims to not define types or structs +when C lib headers are active, but in order to work, the C lib headers have +to be included before the linux headers. + +move the netinet/in.h include up above the linux/ includes. + +Mike Frysinger <vapier@gentoo.org> + +--- a/src/pppoe.h ++++ b/src/pppoe.h +@@ -47,6 +47,8 @@ + #include <sys/socket.h> + #endif + ++#include <netinet/in.h> ++ + /* Ugly header files on some Linux boxes... */ + #if defined(HAVE_LINUX_IF_H) + #include <linux/if.h> +@@ -84,8 +86,6 @@ typedef unsigned long UINT32_t; + #include <linux/if_ether.h> + #endif + +-#include <netinet/in.h> +- + #ifdef HAVE_NETINET_IF_ETHER_H + #include <sys/types.h> + diff --git a/net-dialup/rp-pppoe/rp-pppoe-3.12.ebuild b/net-dialup/rp-pppoe/rp-pppoe-3.12.ebuild index addecd9c29ff..4739e1f59e3e 100644 --- a/net-dialup/rp-pppoe/rp-pppoe-3.12.ebuild +++ b/net-dialup/rp-pppoe/rp-pppoe-3.12.ebuild @@ -48,6 +48,7 @@ src_prepare() { epatch "${FILESDIR}/${PN}-3.10-posix-source-sigaction.patch" epatch "${FILESDIR}/${PN}-3.11-gentoo.patch" epatch "${FILESDIR}/${PN}-3.11-kmode.patch" #364941 + epatch "${FILESDIR}/${PN}-3.12-linux-headers.patch" epatch_user |