mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Manually merged fix from nurupo.
This commit is contained in:
parent
cc1a3f52ee
commit
8bc40b7f13
|
@ -45,7 +45,8 @@ int main(int argc, char *argv[])
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
//I think this works for windows
|
//I think this works for windows
|
||||||
u_long mode = 1;
|
u_long mode = 1;
|
||||||
ioctl(sock, FIONBIO, &mode);
|
//ioctl(sock, FIONBIO, &mode);
|
||||||
|
ioctlsocket(sock, FIONBIO, &mode);
|
||||||
#else
|
#else
|
||||||
fcntl(sock, F_SETFL, O_NONBLOCK, 1);
|
fcntl(sock, F_SETFL, O_NONBLOCK, 1);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user