From 867c189ef7a2079a21f9ab74cf7d79e1245d7f71 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 8 Oct 2003 19:56:44 +0000 Subject: bail out hard if ipv6 and ares are both enabled at the same time --- lib/setup.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3