aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip.h
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2006-07-24 15:48:48 +0000
committerGisle Vanem <gvanem@broadpark.no>2006-07-24 15:48:48 +0000
commit4e58da5222e09dced11637eae2c16fcce863daad (patch)
tree7e647810e92717a307c9745cfd4d9a1f285eab1b /lib/hostip.h
parent1c6ebb0782c81648e632b2360eb2e0157bb263f2 (diff)
Ares needs CURLRES_ADDRINFO_COPY. Curl_hostent_relocate() is gone.
Diffstat (limited to 'lib/hostip.h')
-rw-r--r--lib/hostip.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/hostip.h b/lib/hostip.h
index 72906ab32..6e7519c09 100644
--- a/lib/hostip.h
+++ b/lib/hostip.h
@@ -51,14 +51,14 @@
#define CURLRES_IPV4
#endif
-#ifdef CURLRES_IPV4
+#if defined(CURLRES_IPV4) || defined(CURLRES_ARES)
#if !defined(HAVE_GETHOSTBYNAME_R) || defined(CURLRES_ASYNCH)
/* If built for ipv4 and missing gethostbyname_r(), or if using async name
resolve, we need the Curl_addrinfo_copy() function (which itself needs the
- Curl_hostent_relocate() function)) */
+ Curl_he2ai() function)) */
#define CURLRES_ADDRINFO_COPY
#endif
-#endif /* IPv4-only */
+#endif /* IPv4/ares-only */
#ifndef CURLRES_ASYNCH
#define CURLRES_SYNCH
@@ -218,17 +218,14 @@ CURLcode Curl_addrinfo6_callback(void *arg,
struct addrinfo *ai);
-/* [ipv4 only] Creates a Curl_addrinfo struct from a numerical-only IP
+/* [ipv4/ares only] Creates a Curl_addrinfo struct from a numerical-only IP
address */
Curl_addrinfo *Curl_ip2addr(in_addr_t num, const char *hostname, int port);
-/* [ipv4 only] Curl_he2ai() converts a struct hostent to a Curl_addrinfo chain
+/* [ipv4/ares only] Curl_he2ai() converts a struct hostent to a Curl_addrinfo chain
and returns it */
Curl_addrinfo *Curl_he2ai(const struct hostent *, int port);
-/* relocate a hostent struct */
-void Curl_hostent_relocate(struct hostent *h, long offset);
-
/* Clone a Curl_addrinfo struct, works protocol independently */
Curl_addrinfo *Curl_addrinfo_copy(const void *orig, int port);