Fixed? DHT_test compiling on windows.

This commit is contained in:
irungentoo 2013-06-24 18:37:23 -04:00
parent b792e3d6ad
commit cc1a3f52ee

View File

@ -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);