Use correct 3rd argument for ioctlsocket() under Watt-32.
authorGisle Vanem <gvanem@broadpark.no>
Sun, 4 Feb 2007 13:34:34 +0000 (13:34 +0000)
committerGisle Vanem <gvanem@broadpark.no>
Sun, 4 Feb 2007 13:34:34 +0000 (13:34 +0000)
ares/ares_process.c

index 4b4ff35..f6669ca 100644 (file)
@@ -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);