aboutsummaryrefslogtreecommitdiff
path: root/ares
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2005-12-20 20:29:53 +0000
committerYang Tse <yangsita@gmail.com>2005-12-20 20:29:53 +0000
commitdf2b1251a09a9fca8e67d37726bdfd2296d2a5e2 (patch)
tree45fcd72c32861ae8b580277bf55c7b1c3ad12238 /ares
parent02c7cf6fa540351cbeb6eddad04dee2899158471 (diff)
fix ioctlsocket detection
Diffstat (limited to 'ares')
-rw-r--r--ares/acinclude.m46
1 files changed, 4 insertions, 2 deletions
diff --git a/ares/acinclude.m4 b/ares/acinclude.m4
index b09c935d1..5a7a460e8 100644
--- a/ares/acinclude.m4
+++ b/ares/acinclude.m4
@@ -372,8 +372,10 @@ dnl the code was bad, try a different program now, test 3
#endif
],[
/* ioctlsocket source code */
- SOCKET socket;
- unsigned long flags = ioctlsocket(socket, FIONBIO, &flags);
+ SOCKET sd;
+ unsigned long flags = 0;
+ sd = socket(0, 0, 0);
+ ioctlsocket(sd, FIONBIO, &flags);
],[
dnl ioctlsocket test was good
nonblock="ioctlsocket"