From 8bc40b7f1304866d94baf6be56980f64fbf90565 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Mon, 24 Jun 2013 19:40:38 -0400 Subject: [PATCH] Manually merged fix from nurupo. --- testing/DHT_test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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