mirror of
https://github.com/glest/glest-source.git
synced 2025-08-20 07:01:21 +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)
|
||||
return fcntl (*sock, F_SETFL, fcntl (*sock, F_GETFL,0 ) | O_NONBLOCK) != 0;
|
||||
#else
|
||||
unsigned long mode = 1;
|
||||
unsigned long mode = 0;
|
||||
return ioctlsocket (*sock, FIONBIO, &mode) == SOCKET_ERROR;
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user