windows (compile) fix
This commit is contained in:
1 parent
3cb2f6dcf7
commit
b80696af00
1 file changed
+1
-1
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user