diff options
author | irungentoo <irungentoo@gmail.com> | 2013-06-24 18:37:23 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-06-24 18:37:23 -0400 |
commit | cc1a3f52eef6194410e1698398ba3dd1c7a1a215 (patch) | |
tree | d8fdc3209d2820a302bffc572686249b98144906 /testing/DHT_test.c | |
parent | b792e3d6ad4ec26ba35f58afdd97e7a94d4207bb (diff) |
Fixed? DHT_test compiling on windows.
Diffstat (limited to 'testing/DHT_test.c')
-rw-r--r-- | testing/DHT_test.c | 1 |
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); |