mirror of
https://github.com/glest/glest-source.git
synced 2025-08-21 15:41:24 +02:00
Fixed socket connectivity bug in libircclient on Windows
This commit is contained in:
@@ -76,7 +76,7 @@ static int socket_make_nonblocking (socket_t * sock)
|
|||||||
#if !defined (_WIN32)
|
#if !defined (_WIN32)
|
||||||
return fcntl (*sock, F_SETFL, fcntl (*sock, F_GETFL,0 ) | O_NONBLOCK) != 0;
|
return fcntl (*sock, F_SETFL, fcntl (*sock, F_GETFL,0 ) | O_NONBLOCK) != 0;
|
||||||
#else
|
#else
|
||||||
unsigned long mode = 1;
|
unsigned long mode = 0;
|
||||||
return ioctlsocket (*sock, FIONBIO, &mode) == SOCKET_ERROR;
|
return ioctlsocket (*sock, FIONBIO, &mode) == SOCKET_ERROR;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user