From 9b0e57b0f79c4e267c9953e5fba69c3ecf8a5951 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 26 Jan 2010 12:13:39 +0000 Subject: resolver selection for non-configure Windows builds, default is threaded DNS --- lib/config-win32.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'lib/config-win32.h') diff --git a/lib/config-win32.h b/lib/config-win32.h index f1276d3d1..bc2dedf54 100644 --- a/lib/config-win32.h +++ b/lib/config-win32.h @@ -506,6 +506,24 @@ # define USE_WIN32_SMALL_FILES #endif +/* ---------------------------------------------------------------- */ +/* DNS RESOLVER SPECIALTY */ +/* ---------------------------------------------------------------- */ + +/* + * Undefine both USE_ARES and USE_THREADS_WIN32 for synchronous DNS + */ + +/* Define USE_ARES to enable c-ares asynchronous DNS lookups */ +/* #define USE_ARES 1 */ + +/* Define USE_THREADS_WIN32 to enable threaded asynchronous DNS lookups */ +#define USE_THREADS_WIN32 1 + +#if defined(USE_ARES) && defined(USE_THREADS_WIN32) +# error "Only one DNS lookup specialty may be defined at most" +#endif + /* ---------------------------------------------------------------- */ /* LDAP SUPPORT */ /* ---------------------------------------------------------------- */ -- cgit v1.2.3