summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testing/DHT_test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/testing/DHT_test.c b/testing/DHT_test.c
index 29c25e0a..8fa9ec57 100644
--- a/testing/DHT_test.c
+++ b/testing/DHT_test.c
@@ -44,6 +44,7 @@ int main(int argc, char *argv[])
44 //Set socket nonblocking 44 //Set socket nonblocking
45 #ifdef WIN32 45 #ifdef WIN32
46 //I think this works for windows 46 //I think this works for windows
47 u_long mode = 1;
47 ioctl(sock, FIONBIO, &mode); 48 ioctl(sock, FIONBIO, &mode);
48 #else 49 #else
49 fcntl(sock, F_SETFL, O_NONBLOCK, 1); 50 fcntl(sock, F_SETFL, O_NONBLOCK, 1);