summaryrefslogtreecommitdiff
path: root/ares_process.c
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2005-03-13 09:21:54 +0000
committerGisle Vanem <gvanem@broadpark.no>2005-03-13 09:21:54 +0000
commit1223fb7eaceca6a7009a6a06ddfe094f926aa723 (patch)
tree413d6cdd99ff3e565f0114026ebec982dd1f7863 /ares_process.c
parente1e80ecdd6e01436e338cabba4c7519264d56134 (diff)
downloadc-ares-1223fb7eaceca6a7009a6a06ddfe094f926aa723.tar.gz
c-ares-1223fb7eaceca6a7009a6a06ddfe094f926aa723.tar.bz2
c-ares-1223fb7eaceca6a7009a6a06ddfe094f926aa723.zip
Prevent gcc warning.
Diffstat (limited to 'ares_process.c')
-rw-r--r--ares_process.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ares_process.c b/ares_process.c
index 887149e..0190f78 100644
--- a/ares_process.c
+++ b/ares_process.c
@@ -465,8 +465,12 @@ void ares__send_query(ares_channel channel, struct query *query, time_t now)
static int open_tcp_socket(ares_channel channel, struct server_state *server)
{
- ares_socket_t s;
+#if defined(WIN32)
+ u_long flags;
+#else
int flags;
+#endif
+ ares_socket_t s;
struct sockaddr_in sockin;
/* Acquire a socket. */