windows (compile) fix

This commit is contained in:
Benjamin Sergeant 2019-01-05 17:04:09 -08:00
parent 9a37fd56d1
commit c8c81366f7

View File

@ -79,7 +79,7 @@ namespace ix
if (::connect(fd, address->ai_addr, address->ai_addrlen) == -1) if (::connect(fd, address->ai_addr, address->ai_addrlen) == -1)
{ {
#ifdef _WIN32 #ifdef _WIN32
if (Socket::getErrno() == EWOULDBLOCK) errno = EINPROGRESS; if (WSAGetLastError() == WSAEWOULDBLOCK) errno = EINPROGRESS;
#endif #endif
if (errno != EINPROGRESS) if (errno != EINPROGRESS)
{ {