fixed compilation on windows

This commit is contained in:
csoler 2021-12-19 20:22:04 +01:00
parent 9684b2ed94
commit 5fe39248f8

View File

@ -50,7 +50,7 @@ void RsFdBinInterface::setSocket(int s)
#else
// On windows, there is no way to determine whether a socket is blobking or not, so we set it to non blocking whatsoever.
unsigned long int on = 1;
ret = ioctlsocket(fd[STDOUT_FILENO], FIONBIO, &on);
ioctlsocket(s, FIONBIO, &on);
#endif
mCLintConnt = s;