aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-09-28 07:05:26 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-09-28 07:05:26 +0000
commit48dc74aeccab16febc770ccc5fec7ec96af26a97 (patch)
treed5fce7440267d210d0cab50dc06b618d398fbf8b /lib/hostip.h
parent888d39e0838765cff55c3e98460c187a8ebf95d3 (diff)
more transparant support for IPv6 name resolving
Diffstat (limited to 'lib/hostip.h')
-rw-r--r--lib/hostip.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/lib/hostip.h b/lib/hostip.h
index 5dab8e4e9..e05e3d5e2 100644
--- a/lib/hostip.h
+++ b/lib/hostip.h
@@ -24,12 +24,18 @@
*****************************************************************************/
struct addrinfo;
-struct addrinfo *Curl_getaddrinfo(struct SessionHandle *data,
- char *hostname,
- int port);
+struct hostent;
+struct SessionHandle;
-struct hostent *Curl_gethost(struct SessionHandle *data,
- char *hostname,
- char **bufp);
+#ifdef ENABLE_IPV6
+typedef struct addrinfo Curl_addrinfo;
+#else
+typedef struct hostent Curl_addrinfo;
+#endif
+
+Curl_addrinfo *Curl_getaddrinfo(struct SessionHandle *data,
+ char *hostname,
+ int port,
+ char **bufp);
#endif