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}};