]> granicus.if.org Git - curl/commitdiff
Builds using synchronous name resolver dislike marking the connection as async.
authorYang Tse <yangsita@gmail.com>
Thu, 19 Oct 2006 02:30:02 +0000 (02:30 +0000)
committerYang Tse <yangsita@gmail.com>
Thu, 19 Oct 2006 02:30:02 +0000 (02:30 +0000)
lib/url.c

index 850a9451fe2ce5ec2029e744fb35906b97fc7137..4bb4234f733b4897ec1a4c0811dd006b75d202b9 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -3622,10 +3622,12 @@ static CURLcode CreateConnection(struct SessionHandle *data,
     infof(data, "Re-using existing connection! (#%ld) with host %s\n",
           conn->connectindex,
           conn->bits.httpproxy?conn->proxy.dispname:conn->host.dispname);
+#ifdef CURLRES_ASYNCH
     if(!conn->dns_entry) {
       infof(data, "... but it is not resolved yet!\n");
       *async = TRUE;
     }
+#endif
   }
   else {
     /*