]> granicus.if.org Git - curl/commitdiff
resolver selection for non-configure Windows builds, default is threaded DNS
authorYang Tse <yangsita@gmail.com>
Tue, 26 Jan 2010 12:13:39 +0000 (12:13 +0000)
committerYang Tse <yangsita@gmail.com>
Tue, 26 Jan 2010 12:13:39 +0000 (12:13 +0000)
lib/config-win32.h

index f1276d3d1134c5b5723f61e7256cf6602acf5ce0..bc2dedf54127e199d5a0533041d875ea395ae9bd 100644 (file)
 #  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                           */
 /* ---------------------------------------------------------------- */