Fix compiling with LWIP_SOCKET_SELECT==0

This commit is contained in:
goldsimon 2017-09-21 21:49:31 +02:00
parent 983eb8ebb4
commit 333f1bf2bd

View File

@ -1692,6 +1692,7 @@ lwip_writev(int s, const struct iovec *iov, int iovcnt)
return lwip_sendmsg(s, &msg, 0);
}
#if LWIP_SOCKET_SELECT
/* Add select_cb to select_cb_list. */
static void
lwip_link_select_cb(struct lwip_select_cb *select_cb)
@ -1741,7 +1742,7 @@ lwip_unlink_select_cb(struct lwip_select_cb *select_cb)
LWIP_SOCKET_SELECT_UNPROTECT(lev);
}
#if LWIP_SOCKET_SELECT
/**
* Go through the readset and writeset lists and see which socket of the sockets
* set in the sets has events. On return, readset, writeset and exceptset have