mirror of
https://github.com/curl/curl.git
synced 2026-07-24 00:17:21 +03:00
Use correct 3rd argument for ioctlsocket() under Watt-32.
This commit is contained in:
parent
a50414f594
commit
5446ed4733
1 changed files with 4 additions and 0 deletions
|
|
@ -557,8 +557,12 @@ static int nonblock(ares_socket_t sockfd, /* operate on this */
|
|||
#endif
|
||||
|
||||
#if defined(HAVE_IOCTLSOCKET) && (SETBLOCK == 0)
|
||||
#ifdef WATT32
|
||||
char flags;
|
||||
#else
|
||||
/* Windows? */
|
||||
unsigned long flags;
|
||||
#endif
|
||||
flags = nonblock;
|
||||
|
||||
return ioctlsocket(sockfd, FIONBIO, &flags);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue