summaryrefslogtreecommitdiff
path: root/lib/hostip4.c
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2006-07-21 04:22:44 +0000
committerGisle Vanem <gvanem@broadpark.no>2006-07-21 04:22:44 +0000
commit02938a010db060a3d14ae0df6a3f95941c33b810 (patch)
tree7c201a10bd21bcfd7321b8684f9815f794da60ac /lib/hostip4.c
parente40641bf7c15f8f4b850d52153b4cca9fd56810f (diff)
downloadcurl-02938a010db060a3d14ae0df6a3f95941c33b810.tar.gz
Changes for combination ENABLE_IPV6 and USE_ARES.
Diffstat (limited to 'lib/hostip4.c')
-rw-r--r--lib/hostip4.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/hostip4.c b/lib/hostip4.c
index bba9fb1dc..e55eb38d8 100644
--- a/lib/hostip4.c
+++ b/lib/hostip4.c
@@ -365,14 +365,15 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
}
#endif /* CURLRES_SYNCH */
+#endif /* CURLRES_IPV4 */
/*
* Curl_he2ai() translates from a hostent struct to a Curl_addrinfo struct.
* The Curl_addrinfo is meant to work like the addrinfo struct does for IPv6
* stacks, but for all hosts and environments.
- *
+ *
* Curl_addrinfo defined in "lib/hostip.h"
- *
+ *
* struct Curl_addrinfo {
* int ai_flags;
* int ai_family;
@@ -383,9 +384,9 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
* struct sockaddr *ai_addr;
* struct Curl_addrinfo *ai_next;
* };
- *
+ *
* hostent defined in <netdb.h>
- *
+ *
* struct hostent {
* char *h_name;
* char **h_aliases;
@@ -393,9 +394,9 @@ Curl_addrinfo *Curl_getaddrinfo(struct connectdata *conn,
* int h_length;
* char **h_addr_list;
* };
- *
+ *
* for backward compatibility:
- *
+ *
* #define h_addr h_addr_list[0]
*/
@@ -451,4 +452,3 @@ Curl_addrinfo *Curl_he2ai(struct hostent *he, int port)
return firstai;
}
-#endif /* CURLRES_IPV4 */