summaryrefslogtreecommitdiff
path: root/libre/rp-pppoe/rp-pppoe-linux-headers.patch
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2018-08-04 23:21:42 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2018-08-04 23:21:42 -0500
commit6c63831d750bb7fe8d0c03f691589c0abc1f2981 (patch)
treed3539babf500db1f68c54963bf18afab2219a91d /libre/rp-pppoe/rp-pppoe-linux-headers.patch
parentac3000629c68c60bc3f887fa1437cc076906e05a (diff)
downloadabslibre-6c63831d750bb7fe8d0c03f691589c0abc1f2981.tar.gz
abslibre-6c63831d750bb7fe8d0c03f691589c0abc1f2981.tar.bz2
abslibre-6c63831d750bb7fe8d0c03f691589c0abc1f2981.zip
rp-pppoe 3.12-3.parabola1: rebuild
Diffstat (limited to 'libre/rp-pppoe/rp-pppoe-linux-headers.patch')
-rw-r--r--libre/rp-pppoe/rp-pppoe-linux-headers.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/libre/rp-pppoe/rp-pppoe-linux-headers.patch b/libre/rp-pppoe/rp-pppoe-linux-headers.patch
new file mode 100644
index 000000000..961eba396
--- /dev/null
+++ b/libre/rp-pppoe/rp-pppoe-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>
+