mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed? DHT_test compiling on windows.
This commit is contained in:
parent
b792e3d6ad
commit
cc1a3f52ee
|
@ -44,6 +44,7 @@ int main(int argc, char *argv[])
|
|||
//Set socket nonblocking
|
||||
#ifdef WIN32
|
||||
//I think this works for windows
|
||||
u_long mode = 1;
|
||||
ioctl(sock, FIONBIO, &mode);
|
||||
#else
|
||||
fcntl(sock, F_SETFL, O_NONBLOCK, 1);
|
||||
|
|
Loading…
Reference in New Issue
Block a user