From 19eed5ff8a27b6385ab27f0d59b36aeb8fcbaee0 Mon Sep 17 00:00:00 2001 From: likewise Date: Fri, 6 Feb 2004 23:43:44 +0000 Subject: [PATCH] Applied dhcp.diff by Ian Wienand on lwip-devel on February 4th 2004. DHCP tries to build even if LWIP_DHCP is turned off. --- src/core/dhcp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/dhcp.c b/src/core/dhcp.c index b554e26a..2c3ae455 100644 --- a/src/core/dhcp.c +++ b/src/core/dhcp.c @@ -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 */