From 60356514c7a7cb1af3579de65f5197ecabe96dcb Mon Sep 17 00:00:00 2001 From: goldsimon Date: Thu, 21 Sep 2017 20:20:23 +0200 Subject: [PATCH] Guard struct lwip_select_cb definition with LWIP_SOCKET_SELECT --- src/include/lwip/priv/sockets_priv.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/include/lwip/priv/sockets_priv.h b/src/include/lwip/priv/sockets_priv.h index 9918aa2b..3628a070 100644 --- a/src/include/lwip/priv/sockets_priv.h +++ b/src/include/lwip/priv/sockets_priv.h @@ -133,6 +133,8 @@ struct lwip_setgetsockopt_data { struct lwip_sock* lwip_socket_dbg_get_socket(int fd); +#if LWIP_SOCKET_SELECT + #if LWIP_NETCONN_SEM_PER_THREAD #define SELECT_SEM_T sys_sem_t* #define SELECT_SEM_PTR(sem) (sem) @@ -158,6 +160,7 @@ struct lwip_select_cb { /** semaphore to wake up a task waiting for select */ SELECT_SEM_T sem; }; +#endif /* LWIP_SOCKET_SELECT */ #endif /* LWIP_SOCKET */