aboutsummaryrefslogtreecommitdiff
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
parent02c7cf6fa540351cbeb6eddad04dee2899158471 (diff)
fix ioctlsocket detection
-rw-r--r--acinclude.m46
-rw-r--r--ares/acinclude.m46
2 files changed, 8 insertions, 4 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index e2ffb1d74..3637e3e6e 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -393,8 +393,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"
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"