Fix compilation on Windows

This commit is contained in:
Azamat H. Hackimov
2024-06-03 17:03:17 +03:00
parent 6057694b56
commit a295b047f0
5 changed files with 17 additions and 9 deletions

View File

@@ -161,7 +161,7 @@ int ConnectToChatServer(const char *serveraddr, int16_t chat_port, char *nicknam
#ifdef WIN32
unsigned long arg = 1;
ioctlsocket(sock, FIONBIO, &arg);
ioctlsocket(Chatsock, FIONBIO, &arg);
#else // WIN32
fcntl(Chatsock, F_SETFL, fcntl(Chatsock, F_GETFL, 0) | O_NONBLOCK);
#endif