Use correct 3rd argument for ioctlsocket() under Watt-32.

pull/1/head
Gisle Vanem 18 years ago
parent 6a3e5617d7
commit 5908d58da3
  1. 4
      ares_process.c

@ -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…
Cancel
Save