From 7555728c50db87ae7d5b8c018c006a14bf374584 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Wed, 30 Dec 2020 12:04:57 +1100 Subject: [PATCH] rp-pppoe: Fix compilation with musl libc Ensure that we don't include both and , and don't include . Signed-off-by: Paul Mackerras --- pppd/plugins/rp-pppoe/if.c | 4 ---- pppd/plugins/rp-pppoe/plugin.c | 1 - pppd/plugins/rp-pppoe/pppoe-discovery.c | 4 ---- pppd/plugins/rp-pppoe/pppoe.h | 4 ++-- 4 files changed, 2 insertions(+), 11 deletions(-) diff --git a/pppd/plugins/rp-pppoe/if.c b/pppd/plugins/rp-pppoe/if.c index 07b20b1..225dd56 100644 --- a/pppd/plugins/rp-pppoe/if.c +++ b/pppd/plugins/rp-pppoe/if.c @@ -30,10 +30,6 @@ static char const RCSID[] = #include #endif -#ifdef HAVE_NET_ETHERNET_H -#include -#endif - #ifdef HAVE_ASM_TYPES_H #include #endif diff --git a/pppd/plugins/rp-pppoe/plugin.c b/pppd/plugins/rp-pppoe/plugin.c index 44e0c31..93c0906 100644 --- a/pppd/plugins/rp-pppoe/plugin.c +++ b/pppd/plugins/rp-pppoe/plugin.c @@ -46,7 +46,6 @@ static char const RCSID[] = #include #include #include -#include #include #include #include diff --git a/pppd/plugins/rp-pppoe/pppoe-discovery.c b/pppd/plugins/rp-pppoe/pppoe-discovery.c index 1a243fe..c970337 100644 --- a/pppd/plugins/rp-pppoe/pppoe-discovery.c +++ b/pppd/plugins/rp-pppoe/pppoe-discovery.c @@ -29,10 +29,6 @@ #include #endif -#ifdef HAVE_NET_ETHERNET_H -#include -#endif - #ifdef HAVE_ASM_TYPES_H #include #endif diff --git a/pppd/plugins/rp-pppoe/pppoe.h b/pppd/plugins/rp-pppoe/pppoe.h index a4e7d5c..e2dc2ff 100644 --- a/pppd/plugins/rp-pppoe/pppoe.h +++ b/pppd/plugins/rp-pppoe/pppoe.h @@ -82,7 +82,7 @@ typedef unsigned long UINT32_t; #ifdef HAVE_LINUX_IF_ETHER_H #include -#endif +#else #ifdef HAVE_NETINET_IF_ETHER_H #include @@ -94,7 +94,7 @@ typedef unsigned long UINT32_t; #include #endif #endif - +#endif /* Ethernet frame types according to RFC 2516 */ #define ETH_PPPOE_DISCOVERY 0x8863 -- 2.39.2