summaryrefslogtreecommitdiff
path: root/acinclude.m4
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
commit02e8cf6e453db23e752a0ce2efa6a7703aa2837d (patch)
treeb932505f9a3a935749d07f07534712ae34c6ca01 /acinclude.m4
parente80c02452ec27f6e7b037977d6e3cb61c010415f (diff)
downloadc-ares-02e8cf6e453db23e752a0ce2efa6a7703aa2837d.tar.gz
c-ares-02e8cf6e453db23e752a0ce2efa6a7703aa2837d.tar.bz2
c-ares-02e8cf6e453db23e752a0ce2efa6a7703aa2837d.zip
fix ioctlsocket detection
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m46
1 files changed, 4 insertions, 2 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index b09c935..5a7a460 100644
--- a/acinclude.m4
+++ b/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"