mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-13 09:54:39 +08:00

Fix below build errors: In file included from ../../../../../lwip/src/include/netif/ppp/ppp_opts.h:31:0, from ../../../../../lwip/src/netif/ppp/pppoe.c:71: ../../../../../lwip/src/netif/ppp/pppoe.c: In function ‘pppoe_timeout’: ../../../../../lwip/src/netif/ppp/pppoe.c:861:30: error: ‘ethbroadcast’ undeclared (first use in this function) MEMCPY(&sc->sc_dest, ethbroadcast.addr, sizeof(sc->sc_dest)); ^ ../../../../../lwip/src/include/lwip/opt.h:137:52: note: in definition of macro ‘MEMCPY’ #define MEMCPY(dst,src,len) memcpy(dst,src,len) ^ ../../../../../lwip/src/netif/ppp/pppoe.c:861:30: note: each undeclared identifier is reported only once for each function it appears in MEMCPY(&sc->sc_dest, ethbroadcast.addr, sizeof(sc->sc_dest)); ^ ../../../../../lwip/src/include/lwip/opt.h:137:52: note: in definition of macro ‘MEMCPY’ #define MEMCPY(dst,src,len) memcpy(dst,src,len) ^ ../../../../../lwip/src/netif/ppp/pppoe.c: In function ‘pppoe_connect’: ../../../../../lwip/src/netif/ppp/pppoe.c:899:24: error: ‘ethbroadcast’ undeclared (first use in this function) MEMCPY(&sc->sc_dest, ethbroadcast.addr, sizeof(sc->sc_dest)); ^ ../../../../../lwip/src/include/lwip/opt.h:137:52: note: in definition of macro ‘MEMCPY’ #define MEMCPY(dst,src,len) memcpy(dst,src,len) ^ ../../Common.mk:94: recipe for target 'pppoe.o' failed make: *** [pppoe.o] Error 1 Fixes: 8eb9db18a2d9 ("Reduce usage of netif/ethernet.h header, mostly lwip/prot/ethernet.h is sufficient") Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: goldsimon <goldsimon@gmx.de>