diff options
Diffstat (limited to 'lib/hostip.h')
-rw-r--r-- | lib/hostip.h | 18 |
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 |