aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-10-08 19:56:44 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-10-08 19:56:44 +0000
commit867c189ef7a2079a21f9ab74cf7d79e1245d7f71 (patch)
tree4b66f69796f13ec754ecb83c71ff25ea743a6779 /lib
parent33525ac165b95bd261d2d92a82e3d8249153f2c9 (diff)
bail out hard if ipv6 and ares are both enabled at the same time
Diffstat (limited to 'lib')
-rw-r--r--lib/setup.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/setup.h b/lib/setup.h
index bc5314bae..92decad04 100644
--- a/lib/setup.h
+++ b/lib/setup.h
@@ -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