]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Allow compilation when no IPv6 stack is available.
authorDan Fandrich <dan@coneharvesters.com>
Fri, 10 Oct 2008 03:46:32 +0000 (03:46 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Fri, 10 Oct 2008 03:46:32 +0000 (03:46 +0000)
lib/connect.c

index 07d5f388715a0c6a02c55f79c7aa4d3d13c6579d..3d3479218cc8244f12fb6d466b7c3a3042d0aa6a 100644 (file)
@@ -335,8 +335,10 @@ static CURLcode bindlocal(struct connectdata *conn,
       long ipver = data->set.ip_version;
       if (af == AF_INET)
         data->set.ip_version = CURL_IPRESOLVE_V4;
+#ifdef ENABLE_IPV6
       else if (af == AF_INET6)
         data->set.ip_version = CURL_IPRESOLVE_V6;
+#endif
 
       rc = Curl_resolv(conn, dev, 0, &h);
       if(rc == CURLRESOLV_PENDING)