Commit 5446ed47 authored by Gisle Vanem's avatar Gisle Vanem
Browse files

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

parent a50414f5
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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);