From 2dc8f59bf4adc3a90bb78558b67c23a4c107aa3e Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Fri, 26 Feb 2016 22:50:44 +0100 Subject: [PATCH] Fix compile when PPPOE is enabled --- src/netif/etharp.c | 4 ---- src/netif/ethernet.c | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/netif/etharp.c b/src/netif/etharp.c index 2f2db38a..3f5ba2f2 100644 --- a/src/netif/etharp.c +++ b/src/netif/etharp.c @@ -57,10 +57,6 @@ #include "netif/etharp.h" #include "lwip/ip6.h" -#if PPPOE_SUPPORT -#include "netif/ppp/pppoe.h" -#endif /* PPPOE_SUPPORT */ - #include #if LWIP_IPV4 && LWIP_ARP /* don't build if not configured for use in lwipopts.h */ diff --git a/src/netif/ethernet.c b/src/netif/ethernet.c index 2a448577..6d843913 100644 --- a/src/netif/ethernet.c +++ b/src/netif/ethernet.c @@ -48,6 +48,10 @@ #include +#if PPPOE_SUPPORT +#include "netif/ppp/pppoe.h" +#endif /* PPPOE_SUPPORT */ + const struct eth_addr ethbroadcast = {{0xff,0xff,0xff,0xff,0xff,0xff}}; const struct eth_addr ethzero = {{0,0,0,0,0,0}};