diff options
Diffstat (limited to 'lib/setup.h')
-rw-r--r-- | lib/setup.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/setup.h b/lib/setup.h index b5fd9f505..d238d70cc 100644 --- a/lib/setup.h +++ b/lib/setup.h @@ -144,4 +144,19 @@ int fileno( FILE *stream); #endif +/* + * Curl_addrinfo MUST be used for name resolving information. + * Information regarding a single IP witin a Curl_addrinfo MUST be stored in + * a Curl_ipconnect struct. + */ +#ifdef ENABLE_IPV6 +typedef struct addrinfo Curl_addrinfo; +typedef struct addrinfo Curl_ipconnect; +#else +typedef struct hostent Curl_addrinfo; +typedef struct in_addr Curl_ipconnect; +#endif + + + #endif /* __CONFIG_H */ |