diff --git a/src/core/dhcp.c b/src/core/dhcp.c index e2caa8b1..404ed3cc 100644 --- a/src/core/dhcp.c +++ b/src/core/dhcp.c @@ -67,20 +67,20 @@ * to remove the DHCP client. * */ -#ifdef LWIP_DHCP /* don't build if not configured for use in lwipopt.h */ - #include "lwip/stats.h" #include "lwip/mem.h" #include "lwip/udp.h" +#include "lwip/ip_addr.h" #include "lwip/netif.h" #include "lwip/inet.h" -#include "lwip/ip_addr.h" #include "netif/etharp.h" #include "lwip/sys.h" #include "lwip/opt.h" #include "lwip/dhcp.h" +#if LWIP_DHCP /* don't build if not configured for use in lwipopt.h */ + /** global transaction identifier, must be * unique for each DHCP request. */ static u32_t xid = 0xABCD0000;