Added missing #if LWIP_DHCP #endif pair.

This commit is contained in:
likewise 2004-03-11 19:23:07 +00:00
parent 30fde02666
commit 4e44c2b993
2 changed files with 11 additions and 2 deletions

View File

@ -9,6 +9,11 @@ HISTORY
(active STABLE-0_7 branch) (active STABLE-0_7 branch)
++ Bug fixes:
2004-03-11 Leon Woestenberg <leon.woestenberg@gmx.net>
* dhcp.c: Added missing #if LWIP_DHCP #endif pair.
(STABLE-0_7_1) (STABLE-0_7_1)
++ Bug fixes: ++ Bug fixes:

View File

@ -6,8 +6,8 @@
/* /*
* *
* Copyright (c) 2001-2003 Leon Woestenberg <leon.woestenberg@gmx.net> * Copyright (c) 2001-2004 Leon Woestenberg <leon.woestenberg@gmx.net>
* Copyright (c) 2001-2003 Axon Digital Design B.V., The Netherlands. * Copyright (c) 2001-2004 Axon Digital Design B.V., The Netherlands.
* All rights reserved. * All rights reserved.
* *
* Redistribution and use in source and binary forms, with or without modification, * Redistribution and use in source and binary forms, with or without modification,
@ -67,6 +67,8 @@
* to remove the DHCP client. * 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/stats.h"
#include "lwip/mem.h" #include "lwip/mem.h"
#include "lwip/udp.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)); LWIP_DEBUGF(DHCP_DEBUG, ("option long value=%lu\n", value));
return value; return value;
} }
#endif /* LWIP_DHCP */