diff options
Diffstat (limited to 'lib/urldata.h')
-rw-r--r-- | lib/urldata.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index e585118c7..ed0099ddd 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -26,6 +26,7 @@ /* This file is for lib internal stuff */ #include "setup.h" +#include "hostip.h" #define PORT_FTP 21 #define PORT_TELNET 23 @@ -223,12 +224,12 @@ struct connectdata { #define PROT_FILE (1<<8) #define PROT_FTPS (1<<9) + Curl_addrinfo *hp; /* IP-protocol independent host info pointer list */ + char *hostent_buf; /* pointer to allocated memory for name info */ + #ifdef ENABLE_IPV6 - struct addrinfo *hp; /* host info pointer list */ struct addrinfo *ai; /* the particular host we use */ #else - char *hostent_buf; /* pointer to allocated memory for name info */ - struct hostent *hp; struct sockaddr_in serv_addr; #endif char protostr[64]; /* store the protocol string in this buffer */ |