From 575a40813fbed9e792285a2becd76e0083e56a4b Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Fri, 1 Oct 2021 00:58:39 +0300 Subject: [PATCH] do not undefine socket() and accept() from qnet_unix_p header Signed-off-by: Ivailo Monev --- src/network/socket/qnet_unix_p.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/network/socket/qnet_unix_p.h b/src/network/socket/qnet_unix_p.h index 97ea23277..614c91789 100644 --- a/src/network/socket/qnet_unix_p.h +++ b/src/network/socket/qnet_unix_p.h @@ -79,14 +79,6 @@ static inline int qt_safe_connect(int sockfd, const struct sockaddr *addr, QT_SO return ret; } -#if defined(socket) -# undef socket -#endif -#if defined(accept) -# undef accept -#endif - -// VxWorks' headers do not specify any const modifiers static inline int qt_safe_sendto(int sockfd, const void *buf, size_t len, int flags, const struct sockaddr *to, QT_SOCKLEN_T tolen) { #ifdef MSG_NOSIGNAL -- 2.11.0