windows (compile) fix
This commit is contained in:
parent
9a37fd56d1
commit
c8c81366f7
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user