From 13d40e33a4442adcc29893b36a91f39fc02d24bf Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Sun, 13 Mar 2005 09:21:54 +0000 Subject: Prevent gcc warning. --- ares/ares_process.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'ares') diff --git a/ares/ares_process.c b/ares/ares_process.c index 887149efb..0190f785e 100644 --- a/ares/ares_process.c +++ b/ares/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. */ -- cgit v1.2.3