Fixed socket connectivity bug in libircclient on Windows

This commit is contained in:
MathuSum Mut
2018-09-10 22:51:17 +02:00
committed by GitHub
parent ac0892cda2
commit ff2a27537b

View File

@@ -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
} }