diff options
Diffstat (limited to 'ares')
-rw-r--r-- | ares/acinclude.m4 | 6 |
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" |