From a8f9980e70713039baa28f2ba7dd9c67b6cffda9 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 11 Nov 2016 14:27:33 -0500 Subject: net-dialup/rp-pppoe: fix build w/linux-headers-4.8+ --- .../files/rp-pppoe-3.12-linux-headers.patch | 28 ++++++++++++++++++++++ net-dialup/rp-pppoe/rp-pppoe-3.12.ebuild | 1 + 2 files changed, 29 insertions(+) create mode 100644 net-dialup/rp-pppoe/files/rp-pppoe-3.12-linux-headers.patch (limited to 'net-dialup') 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 + +--- a/src/pppoe.h ++++ b/src/pppoe.h +@@ -47,6 +47,8 @@ + #include + #endif + ++#include ++ + /* Ugly header files on some Linux boxes... */ + #if defined(HAVE_LINUX_IF_H) + #include +@@ -84,8 +86,6 @@ typedef unsigned long UINT32_t; + #include + #endif + +-#include +- + #ifdef HAVE_NETINET_IF_ETHER_H + #include + 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 -- cgit v1.2.3-65-gdbad