mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
Guard LWIP_COMPAT_SOCKETS definitions of lwip_socket with LWIP_SOCKET_SELECT
This commit is contained in:
parent
60356514c7
commit
61e0a42cce
@ -522,7 +522,9 @@ void lwip_socket_thread_cleanup(void); /* LWIP_NETCONN_SEM_PER_THREAD==1: destro
|
|||||||
#define lwip_sendmsg sendmsg
|
#define lwip_sendmsg sendmsg
|
||||||
#define lwip_sendto sendto
|
#define lwip_sendto sendto
|
||||||
#define lwip_socket socket
|
#define lwip_socket socket
|
||||||
|
#if LWIP_SOCKET_SELECT
|
||||||
#define lwip_select select
|
#define lwip_select select
|
||||||
|
#endif
|
||||||
#define lwip_ioctlsocket ioctl
|
#define lwip_ioctlsocket ioctl
|
||||||
#define lwip_inet_ntop inet_ntop
|
#define lwip_inet_ntop inet_ntop
|
||||||
#define lwip_inet_pton inet_pton
|
#define lwip_inet_pton inet_pton
|
||||||
@ -608,8 +610,10 @@ int lwip_inet_pton(int af, const char *src, void *dst);
|
|||||||
#define sendto(s,dataptr,size,flags,to,tolen) lwip_sendto(s,dataptr,size,flags,to,tolen)
|
#define sendto(s,dataptr,size,flags,to,tolen) lwip_sendto(s,dataptr,size,flags,to,tolen)
|
||||||
/** @ingroup socket */
|
/** @ingroup socket */
|
||||||
#define socket(domain,type,protocol) lwip_socket(domain,type,protocol)
|
#define socket(domain,type,protocol) lwip_socket(domain,type,protocol)
|
||||||
|
#if LWIP_SOCKET_SELECT
|
||||||
/** @ingroup socket */
|
/** @ingroup socket */
|
||||||
#define select(maxfdp1,readset,writeset,exceptset,timeout) lwip_select(maxfdp1,readset,writeset,exceptset,timeout)
|
#define select(maxfdp1,readset,writeset,exceptset,timeout) lwip_select(maxfdp1,readset,writeset,exceptset,timeout)
|
||||||
|
#endif
|
||||||
/** @ingroup socket */
|
/** @ingroup socket */
|
||||||
#define ioctlsocket(s,cmd,argp) lwip_ioctl(s,cmd,argp)
|
#define ioctlsocket(s,cmd,argp) lwip_ioctl(s,cmd,argp)
|
||||||
/** @ingroup socket */
|
/** @ingroup socket */
|
||||||
|
Loading…
Reference in New Issue
Block a user