aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-08-06 15:26:02 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-08-06 15:26:02 +0000
commit62b65a5f2015105af493c2c2facf3456dd676b84 (patch)
treed32addefa83c7d7b655fd039f7254ea44fb3e5aa /lib/hostip.c
parent665a7a3848516d063c12b7f739a2056c80b25561 (diff)
make it build without ares support
make sure it set async false even when using ipv6 (made test case 20 fail before)
Diffstat (limited to 'lib/hostip.c')
-rw-r--r--lib/hostip.c24
1 files changed, 23 insertions, 1 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index 3e69d4ea9..23bd532f3 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -565,6 +565,27 @@ CURLcode Curl_wait_for_resolv(struct connectdata *conn,
*entry=NULL;
return CURLE_COULDNT_RESOLVE_HOST;
}
+
+CURLcode Curl_multi_ares_fdset(struct connectdata *conn,
+ fd_set *read_fd_set,
+ fd_set *write_fd_set,
+ int *max_fdp)
+{
+ (void)conn;
+ (void)read_fd_set;
+ (void)write_fd_set;
+ (void)max_fdp;
+ return CURLE_OK;
+}
+
+CURLcode Curl_is_resolved(struct connectdata *conn, bool *done)
+{
+ (void)conn;
+ *done = TRUE;
+
+ return CURLE_OK;
+}
+
#endif
#if defined(ENABLE_IPV6) && !defined(USE_ARES)
@@ -623,6 +644,8 @@ static Curl_addrinfo *my_getaddrinfo(struct connectdata *conn,
int s, pf = PF_UNSPEC;
struct SessionHandle *data = conn->data;
+ *waitp=0; /* don't wait, we have the response now */
+
/* see if we have an IPv6 stack */
s = socket(PF_INET6, SOCK_DGRAM, 0);
if (s < 0)
@@ -646,7 +669,6 @@ static Curl_addrinfo *my_getaddrinfo(struct connectdata *conn,
infof(data, "getaddrinfo(3) failed for %s:%d\n", hostname, port);
return NULL;
}
- *waitp=0; /* don't wait, we have the response now */
return res;
}