diff options
author | Daniel Stenberg <daniel@haxx.se> | 2008-07-09 18:39:49 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2008-07-09 18:39:49 +0000 |
commit | 0cd8840dbaf662ee59573be86fe6550a1b5cbf97 (patch) | |
tree | afeeb1408ce03e1848e9ed2c6593cf5cc2aba587 /lib/hostip.h | |
parent | d4b253ba3ec87e1d703910bdb278d142e6e6abf8 (diff) | |
download | curl-0cd8840dbaf662ee59573be86fe6550a1b5cbf97.tar.gz |
- Andreas Schuldei improved Phil Blundell's patch for IPv6 using c-ares, and I
edited it slightly. Now you should be able to use IPv6 addresses fine even
with libcurl built to use c-ares.
Diffstat (limited to 'lib/hostip.h')
-rw-r--r-- | lib/hostip.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/hostip.h b/lib/hostip.h index 66d1771a3..d37203cc5 100644 --- a/lib/hostip.h +++ b/lib/hostip.h @@ -104,6 +104,10 @@ */ #ifdef CURLRES_IPV6 typedef struct addrinfo Curl_addrinfo; +#ifdef CURLRES_ARES +Curl_addrinfo *Curl_ip2addr6(struct in6_addr *in, + const char *hostname, int port); +#endif #else /* OK, so some ipv4-only include tree probably have the addrinfo struct, but to work even on those that don't, we provide our own look-alike! */ |