Skip to content
Snippets Groups Projects
Commit df2b1251 authored by Yang Tse's avatar Yang Tse
Browse files

fix ioctlsocket detection

parent 02c7cf6f
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment