-/* $Id$ */
-/* Copyright (C) 2005 - 2007, Daniel Stenberg
+/* Copyright (C) 2005 - 2010, Daniel Stenberg
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose and without fee is hereby granted, provided
* without express or implied warranty.
*/
-#include "setup.h"
-
-#ifdef HAVE_SYS_TIME_H
-#include <sys/time.h>
-#endif
+#include "ares_setup.h"
#include "ares.h"
#include "ares_private.h"
int ares_getsock(ares_channel channel,
- int *s,
+ ares_socket_t *socks,
int numsocks) /* size of the 'socks' array */
{
struct server_state *server;
int bitmap = 0;
unsigned int setbits = 0xffffffff;
- ares_socket_t *socks = (ares_socket_t *)s;
-
/* Are there any active queries? */
int active_queries = !ares__is_list_empty(&(channel->all_queries));