mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
sockets: cleanup ioctlsocket for LWIP_COMPAT_SOCKETS == 2 (patch #9456)
This makes two cleanups that follows the same organization as close/closesocket: 1) There is no lwip_ioctlsocket. Instead lwip_ioctl should redirect to ioctlsocket 2) With LWIP_POSIX_SOCKETS_IO_NAMES enabled, lwip_ioctl/ioctlsocket should redirect to ioctl
This commit is contained in:
parent
0c2d94a283
commit
6cdfae1245
@ -545,7 +545,7 @@ void lwip_socket_thread_cleanup(void); /* LWIP_NETCONN_SEM_PER_THREAD==1: destro
|
|||||||
#if LWIP_SOCKET_POLL
|
#if LWIP_SOCKET_POLL
|
||||||
#define lwip_poll poll
|
#define lwip_poll poll
|
||||||
#endif
|
#endif
|
||||||
#define lwip_ioctlsocket ioctl
|
#define lwip_ioctl ioctlsocket
|
||||||
#define lwip_inet_ntop inet_ntop
|
#define lwip_inet_ntop inet_ntop
|
||||||
#define lwip_inet_pton inet_pton
|
#define lwip_inet_pton inet_pton
|
||||||
|
|
||||||
@ -558,7 +558,9 @@ void lwip_socket_thread_cleanup(void); /* LWIP_NETCONN_SEM_PER_THREAD==1: destro
|
|||||||
#define lwip_close close
|
#define lwip_close close
|
||||||
#define closesocket(s) close(s)
|
#define closesocket(s) close(s)
|
||||||
int fcntl(int s, int cmd, ...);
|
int fcntl(int s, int cmd, ...);
|
||||||
|
#undef lwip_ioctl
|
||||||
#define lwip_ioctl ioctl
|
#define lwip_ioctl ioctl
|
||||||
|
#define ioctlsocket ioctl
|
||||||
#endif /* LWIP_POSIX_SOCKETS_IO_NAMES */
|
#endif /* LWIP_POSIX_SOCKETS_IO_NAMES */
|
||||||
#endif /* LWIP_COMPAT_SOCKETS == 2 */
|
#endif /* LWIP_COMPAT_SOCKETS == 2 */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user