mirror of
https://github.com/curl/curl.git
synced 2026-04-16 18:51:40 +03:00
fix ioctlsocket detection
This commit is contained in:
parent
02c7cf6fa5
commit
df2b1251a0
2 changed files with 8 additions and 4 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue