summaryrefslogtreecommitdiff
path: root/net-dialup/rp-pppoe/files/rp-pppoe-3.13-linux-headers.patch
blob: 1ee989dce8725e1a285060b82aa1ab29f95a3252 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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>

--- rp-pppoe-3.13/src/pppoe.h
+++ rp-pppoe-3.13/src/pppoe.h
@@ -120,12 +120,12 @@
 #error Could not find a 32-bit integer type
 #endif
 
+#include <netinet/in.h>
+
 #ifdef HAVE_LINUX_IF_ETHER_H
 #include <linux/if_ether.h>
 #endif
 
-#include <netinet/in.h>
-
 #ifdef HAVE_NETINET_IF_ETHER_H
 #include <sys/types.h>