diff options
author | Yang Tse <yangsita@gmail.com> | 2005-12-20 20:29:53 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2005-12-20 20:29:53 +0000 |
commit | 02e8cf6e453db23e752a0ce2efa6a7703aa2837d (patch) | |
tree | b932505f9a3a935749d07f07534712ae34c6ca01 /acinclude.m4 | |
parent | e80c02452ec27f6e7b037977d6e3cb61c010415f (diff) | |
download | c-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.m4 | 6 |
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" |