Applied dhcp.diff by Ian Wienand on lwip-devel on February 4th 2004.

DHCP tries to build even if LWIP_DHCP is turned off.
This commit is contained in:
likewise 2004-02-06 23:43:44 +00:00
parent 7129d4797c
commit 19eed5ff8a

View File

@ -67,6 +67,8 @@
* 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"
@ -1418,3 +1420,5 @@ static u32_t dhcp_get_option_long(u8_t *ptr)
LWIP_DEBUGF(DHCP_DEBUG, ("option long value=%lu\n", value));
return value;
}
#endif /* LWIP_DHCP */