summaryrefslogtreecommitdiff
path: root/testing/DHT_test.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-06-24 19:40:38 -0400
committerirungentoo <irungentoo@gmail.com>2013-06-24 19:40:38 -0400
commit8bc40b7f1304866d94baf6be56980f64fbf90565 (patch)
tree38601273a9432422181be1999aed994d842de757 /testing/DHT_test.c
parentcc1a3f52eef6194410e1698398ba3dd1c7a1a215 (diff)
Manually merged fix from nurupo.
Diffstat (limited to 'testing/DHT_test.c')
-rw-r--r--testing/DHT_test.c3
1 files changed, 2 insertions, 1 deletions
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[])
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 u_long mode = 1;
48 ioctl(sock, FIONBIO, &mode); 48 //ioctl(sock, FIONBIO, &mode);
49 ioctlsocket(sock, FIONBIO, &mode);
49 #else 50 #else
50 fcntl(sock, F_SETFL, O_NONBLOCK, 1); 51 fcntl(sock, F_SETFL, O_NONBLOCK, 1);
51 #endif 52 #endif