diff --git a/testing/DHT_test.c b/testing/DHT_test.c index 8fa9ec57..c7caf7d7 100644 --- a/testing/DHT_test.c +++ b/testing/DHT_test.c @@ -45,7 +45,8 @@ int main(int argc, char *argv[]) #ifdef WIN32 //I think this works for windows u_long mode = 1; - ioctl(sock, FIONBIO, &mode); + //ioctl(sock, FIONBIO, &mode); + ioctlsocket(sock, FIONBIO, &mode); #else fcntl(sock, F_SETFL, O_NONBLOCK, 1); #endif