From 0e96ece6c64510f142ef849b2c9eb7a16d92db24 Mon Sep 17 00:00:00 2001 From: likewise Date: Sun, 28 Nov 2004 18:23:00 +0000 Subject: [PATCH] Surround definition of tcp_timer_needed with #if !NO_SYS #endif. (see lwip-users 15-11-2004). --- src/api/tcpip.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/api/tcpip.c b/src/api/tcpip.c index 622d8b5d..b9e11f8e 100644 --- a/src/api/tcpip.c +++ b/src/api/tcpip.c @@ -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