aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-07-09 18:39:49 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-07-09 18:39:49 +0000
commit0cd8840dbaf662ee59573be86fe6550a1b5cbf97 (patch)
treeafeeb1408ce03e1848e9ed2c6593cf5cc2aba587 /lib/hostip.h
parentd4b253ba3ec87e1d703910bdb278d142e6e6abf8 (diff)
downloadgnurl-0cd8840dbaf662ee59573be86fe6550a1b5cbf97.tar.gz
gnurl-0cd8840dbaf662ee59573be86fe6550a1b5cbf97.tar.bz2
gnurl-0cd8840dbaf662ee59573be86fe6550a1b5cbf97.zip
- 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.h4
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! */