diff --git a/lib/socketpair.c b/lib/socketpair.c index 35c68c3a50..5a9ccb4aed 100644 --- a/lib/socketpair.c +++ b/lib/socketpair.c @@ -107,27 +107,20 @@ int Curl_socketpair(int domain, int type, int protocol, } #endif /* USE_SOCKETPAIR */ #else /* !HAVE_SOCKETPAIR */ -#ifdef _WIN32 -/* - * This is a socketpair() implementation for Windows. - */ -#ifdef HAVE_IO_H -#include -#endif -#else + #ifdef HAVE_NETDB_H #include #endif #ifdef HAVE_NETINET_IN_H -#include /* IPPROTO_TCP */ +#include /* for IPPROTO_TCP */ #endif #ifdef HAVE_ARPA_INET_H #include #endif + #ifndef INADDR_LOOPBACK #define INADDR_LOOPBACK 0x7f000001 -#endif /* !INADDR_LOOPBACK */ -#endif /* !_WIN32 */ +#endif #include "curlx/nonblock.h" /* for curlx_nonblock */ #include "curlx/timeval.h" /* needed before select.h */