]> granicus.if.org Git - curl/commitdiff
bail out hard if ipv6 and ares are both enabled at the same time
authorDaniel Stenberg <daniel@haxx.se>
Wed, 8 Oct 2003 19:56:44 +0000 (19:56 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 8 Oct 2003 19:56:44 +0000 (19:56 +0000)
lib/setup.h

index bc5314baed869e66728b527b8c1c0b3249a6cbfc..92decad04a05de5af88d4e7cd0be6bdc11df37d1 100644 (file)
@@ -179,12 +179,16 @@ int fileno( FILE *stream);
 
 #endif
 
+#if defined(ENABLE_IPV6) && defined(USE_ARES)
+#error "ares does not yet support IPv6. Disable IPv6 or ares and rebuild"
+#endif
+
 /*
  * Curl_addrinfo MUST be used for name resolving information.
  * Information regarding a single IP witin a Curl_addrinfo MUST be stored in
  * a Curl_ipconnect struct.
  */
-#if defined(ENABLE_IPV6) && !defined(USE_ARES)
+#ifdef ENABLE_IPV6
 typedef struct addrinfo Curl_addrinfo;
 typedef struct addrinfo Curl_ipconnect;
 #else