Added guard to only compile if LWIP_SOCKET is enabled

This commit is contained in:
goldsimon 2010-02-09 17:51:11 +00:00
parent c1c78c4c9e
commit e46c1c88e9
1 changed files with 6 additions and 0 deletions

View File

@ -1,6 +1,10 @@
#include "socket_examples.h"
#include "lwip/opt.h"
#if LWIP_SOCKET
#include "lwip/sockets.h"
#include "lwip/sys.h"
@ -181,3 +185,5 @@ void socket_examples_init(void)
{
sys_thread_new("sockex_nonblocking_connect", sockex_nonblocking_connect, NULL, 0, 0);
}
#endif /* LWIP_SOCKETS */