Fixed compiling with different options disabled (TCP/UDP), triggered by bug #29345; don't allocate acceptmbox if LWIP_TCP is disabled

This commit is contained in:
goldsimon
2010-03-26 16:09:02 +00:00
parent 7e9eb55350
commit 846a2fb933
6 changed files with 40 additions and 7 deletions

View File

@@ -150,9 +150,11 @@ struct netconn {
/** mbox where received packets are stored until they are fetched
by the netconn application thread (can grow quite big) */
sys_mbox_t recvmbox;
#if LWIP_TCP
/** mbox where new connections are stored until processed
by the application thread */
sys_mbox_t acceptmbox;
#endif LWIP_TCP
/** only used for socket layer */
#if LWIP_SOCKET
int socket;