net-dialup/rp-pppoe: fix build w/linux-headers-4.8+

This commit is contained in:
Mike Frysinger
2016-11-11 14:27:33 -05:00
parent 007835f10f
commit a8f9980e70
2 changed files with 29 additions and 0 deletions

View File

@@ -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>

View File

@@ -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