Dependencies on C library memset() etc., so include <string.h>.

This commit is contained in:
likewise 2004-07-04 23:43:38 +00:00
parent 25a0273b05
commit 7524893802
6 changed files with 12 additions and 1 deletions

View File

@ -67,6 +67,9 @@
* to remove the DHCP client. * to remove the DHCP client.
* *
*/ */
#include <string.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"
@ -940,7 +943,7 @@ static err_t dhcp_release(struct netif *netif)
dhcp->tries++; dhcp->tries++;
msecs = dhcp->tries < 10 ? dhcp->tries * 1000 : 10 * 1000; msecs = dhcp->tries < 10 ? dhcp->tries * 1000 : 10 * 1000;
dhcp->request_timeout = (msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS; dhcp->request_timeout = (msecs + DHCP_FINE_TIMER_MSECS - 1) / DHCP_FINE_TIMER_MSECS;
LWIP_DEBUGF(DHCP_DEBUG | DBG_TRACE | DBG_STATE, ("dhcp_release(): set request timeout %u msecs\n", msecs)); LWIP_DEBUGF(DHCP_DEBUG | DBG_TRACE | DBG_STATE, ("dhcp_release(): set request timeout %u msecs\n", msecs));
/* remove IP address from interface */ /* remove IP address from interface */
netif_set_ipaddr(netif, IP_ADDR_ANY); netif_set_ipaddr(netif, IP_ADDR_ANY);
netif_set_gw(netif, IP_ADDR_ANY); netif_set_gw(netif, IP_ADDR_ANY);

View File

@ -36,6 +36,7 @@
* *
*/ */
#include <string.h>
#include "lwip/arch.h" #include "lwip/arch.h"
#include "lwip/opt.h" #include "lwip/opt.h"

View File

@ -38,6 +38,8 @@
* *
*/ */
#include <string.h>
#include "lwip/opt.h" #include "lwip/opt.h"
#include "lwip/def.h" #include "lwip/def.h"

View File

@ -30,6 +30,7 @@
* *
*/ */
#include <string.h>
#include "lwip/opt.h" #include "lwip/opt.h"

View File

@ -41,6 +41,8 @@
* *
*/ */
#include <string.h>
#include "lwip/opt.h" #include "lwip/opt.h"
#include "lwip/def.h" #include "lwip/def.h"
#include "lwip/mem.h" #include "lwip/mem.h"

View File

@ -42,6 +42,8 @@
* *
*/ */
#include <string.h>
#include "lwip/opt.h" #include "lwip/opt.h"
#include "lwip/def.h" #include "lwip/def.h"