From e7337145ee6f634198eee69d6eff1a7e07bf7294 Mon Sep 17 00:00:00 2001 From: Asanka Herath Date: Wed, 26 May 2010 09:56:49 -0400 Subject: [PATCH] Define HAVE_WINDNS and NO_LIMIT_FD_SETSIZE HAVE_WINDNS is defined when we want to use DNSAPI on Windows which handles most of the resolver work for us. NO_LIMIT_FD_SETSIZE is defined if the value of a socket FD does not imply anything about the number of sockets so far assigned. I.e. checking if the socket is larger than FD_SETSIZE is incorrect. --- include/config.h.w32 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/config.h.w32 b/include/config.h.w32 index b89859415..8fa5b45ad 100644 --- a/include/config.h.w32 +++ b/include/config.h.w32 @@ -1224,6 +1224,9 @@ static const char *const rcsid[] = { (const char *)rcsid, "@(#)" msg } /* Defined if we have WinSock */ #define HAVE_WINSOCK 1 +/* Defined if we have WinDNS */ +#define HAVE_WINDNS 1 + /* define if struct winsize has ws_xpixel */ /* #define HAVE_WS_XPIXEL 1 */ @@ -1404,6 +1407,9 @@ static const char *const rcsid[] = { (const char *)rcsid, "@(#)" msg } /* Define if a socket is not a file descriptor */ #define SOCKET_IS_NOT_AN_FD 1 +/* Define if FD_SETSIZE check does not apply to this platform */ +#define NO_LIMIT_FD_SETSIZE 1 + /* Define to 1 if you have the ANSI C header files. */ #define STDC_HEADERS 1