do not undefine socket() and accept() from qnet_unix_p header

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2021-10-01 00:58:39 +03:00
parent 93f72d029a
commit 575a40813f

View file

@ -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