Fix compilation with LWIP_NETIF_HOSTNAME==0

This commit is contained in:
goldsimon 2010-04-14 14:32:48 +00:00
parent 6eca921e70
commit e28cf98b4d
1 changed files with 4 additions and 0 deletions

View File

@ -110,7 +110,11 @@
#if NO_SYS
#define NOTIFY_LINKSTATE(netif, linkfunc) linkfunc(netif)
#else /* NO_SYS*/
#if LWIP_TCPIP_TIMEOUT
#define NOTIFY_LINKSTATE(netif, linkfunc) tcpip_timeout(PHY_LINKUP_DELAY, (sys_timeout_handler)linkfunc, netif)
#else /* LWIP_TCPIP_TIMEOUT */
#define NOTIFY_LINKSTATE(netif, linkfunc) tcpip_callback((tcpip_callback_fn)linkfunc, netif)
#endif /* LWIP_TCPIP_TIMEOUT */
#endif /* NO_SYS*/
/* Forward declarations. */