From aa84869fdbaed9dbf8c80c34e33cf3cae0b59246 Mon Sep 17 00:00:00 2001 From: likewise Date: Mon, 10 Mar 2003 16:09:41 +0000 Subject: [PATCH] Fixed cyclic dependency by including netif.h. Not sure if this breaks other compilers? --- src/include/lwip/dhcp.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/include/lwip/dhcp.h b/src/include/lwip/dhcp.h index b68306f2..38239cb7 100644 --- a/src/include/lwip/dhcp.h +++ b/src/include/lwip/dhcp.h @@ -5,6 +5,7 @@ #define __LWIP_DHCP_H__ #include "lwip/opt.h" +#include "lwip/netif.h" #include "lwip/udp.h" /** period (in seconds) of the application calling dhcp_coarse_tmr() */ @@ -87,10 +88,8 @@ PACK_STRUCT_END #endif /* Declare here to avoid including netif.h creating a circular dependency */ -struct netif; +//struct netif; -/** initialize DHCP client */ -void dhcp_init(void); /** start DHCP configuration */ err_t dhcp_start(struct netif *netif); /** stop DHCP configuration */