Added guard to only compile if LWIP_NETCONN is enabled

This commit is contained in:
goldsimon 2010-02-09 17:50:57 +00:00
parent 8245ef55a3
commit c1c78c4c9e
3 changed files with 21 additions and 5 deletions

View File

@ -30,6 +30,12 @@
*
*/
#include "shell.h"
#include "lwip/opt.h"
#if LWIP_NETCONN
#include <string.h>
#include <stdio.h>
@ -1463,6 +1469,4 @@ shell_init(void)
sys_thread_new("shell_thread", shell_thread, NULL, DEFAULT_THREAD_STACKSIZE, DEFAULT_THREAD_PRIO);
}
#endif /* LWIP_NETCONN */

View File

@ -29,6 +29,11 @@
* Author: Adam Dunkels <adam@sics.se>
*
*/
#include "tcpecho.h"
#include "lwip/opt.h"
#if LWIP_NETCONN
#include "lwip/sys.h"
#include "lwip/api.h"
@ -88,5 +93,4 @@ tcpecho_init(void)
}
/*-----------------------------------------------------------------------------------*/
#endif /* LWIP_NETCONN */

View File

@ -30,6 +30,12 @@
*
*/
#include "udpecho.h"
#include "lwip/opt.h"
#if LWIP_NETCONN
#include "lwip/api.h"
#include "lwip/sys.h"
@ -69,3 +75,5 @@ udpecho_init(void)
{
sys_thread_new("udpecho_thread", udpecho_thread, NULL, DEFAULT_THREAD_STACKSIZE, DEFAULT_THREAD_PRIO);
}
#endif /* LWIP_NETCONN */