Added guard to only compile if LWIP_NETCONN is enabled
This commit is contained in:
parent
8245ef55a3
commit
c1c78c4c9e
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
Loading…
Reference in New Issue