blob: 9b0920d3bce06e9b2b1659590fd6fcda74b1f9e7 (
plain)
1 From 33797aa193a2751da26f9af120e39c110defe4d1 Mon Sep 17 00:00:00 2001
2 From: Lubomir Rintel <lkundrak@v3.sk>
3 Date: Sat, 10 Dec 2016 19:53:56 +0100
4 Subject: [PATCH] pppoe: include netinet/in.h before linux/in.h
5
6 To fix build breakage.
7 ---
8 pppd/plugins/rp-pppoe/pppoe.h | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-)
10
11 diff --git a/pppd/plugins/rp-pppoe/pppoe.h b/pppd/plugins/rp-pppoe/pppoe.h
12 index 9ab2eee..f77f5b7 100644
13 --- a/pppd/plugins/rp-pppoe/pppoe.h
14 +++ b/pppd/plugins/rp-pppoe/pppoe.h
15 @@ -15,6 +15,8 @@
16
17 #include "config.h"
18
19 +#include <netinet/in.h>
20 +
21 #if defined(HAVE_NETPACKET_PACKET_H) || defined(HAVE_LINUX_IF_PACKET_H)
22 #define _POSIX_SOURCE 1 /* For sigaction defines */
23 #endif
24 @@ -84,8 +86,6 @@ typedef unsigned long UINT32_t;
25 #include <linux/if_ether.h>
26 #endif
27
28 -#include <netinet/in.h>
29 -
30 #ifdef HAVE_NETINET_IF_ETHER_H
31 #include <sys/types.h>
32
33 --
34 2.9.3
|