Windows fix.

This commit is contained in:
Roger A. Light 2014-07-13 22:39:14 +01:00
parent 77999c7fd0
commit 7a5dc33d67

View file

@ -972,7 +972,7 @@ int _mosquitto_socket_nonblock(int sock)
return 1;
}
#else
opt = 1;
unsigned long opt = 1;
if(ioctlsocket(sock, FIONBIO, &opt)){
COMPAT_CLOSE(sock);
return 1;