windows (compile) fix

This commit is contained in:
Benjamin Sergeant 2019-01-05 17:04:09 -08:00
parent 3cb2f6dcf7
commit b80696af00

View File

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