Surround definition of tcp_timer_needed with #if !NO_SYS #endif. (see lwip-users 15-11-2004).

This commit is contained in:
likewise 2004-11-28 18:23:00 +00:00
parent f1eca32536
commit 0e96ece6c6

View File

@ -46,11 +46,10 @@
static void (* tcpip_init_done)(void *arg) = NULL;
static void *tcpip_init_done_arg;
static sys_mbox_t mbox;
#if LWIP_TCP
static int tcpip_tcp_timer_active = 0;
static void
tcpip_tcp_timer(void *arg)
{
@ -68,6 +67,7 @@ tcpip_tcp_timer(void *arg)
}
}
#if !NO_SYS
void
tcp_timer_needed(void)
{
@ -78,6 +78,7 @@ tcp_timer_needed(void)
sys_timeout(TCP_TMR_INTERVAL, tcpip_tcp_timer, NULL);
}
}
#endif /* !NO_SYS */
#endif /* LWIP_TCP */
static void