aboutsummaryrefslogtreecommitdiff
path: root/ares
diff options
context:
space:
mode:
Diffstat (limited to 'ares')
-rw-r--r--ares/ares_process.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ares/ares_process.c b/ares/ares_process.c
index 4b4ff35a7..f6669ca98 100644
--- a/ares/ares_process.c
+++ b/ares/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);