From df2b1251a09a9fca8e67d37726bdfd2296d2a5e2 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 20 Dec 2005 20:29:53 +0000 Subject: fix ioctlsocket detection --- ares/acinclude.m4 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ares') 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" -- cgit v1.2.3