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