aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2008-10-10 03:46:32 +0000
committerDan Fandrich <dan@coneharvesters.com>2008-10-10 03:46:32 +0000
commit8cd76d392133a0c8a52ff0cb9f56951e19657936 (patch)
treec29408504175553e259f48d138b9390b3bdaa615 /lib
parent885805b5dfb89c78f04acde12805b48d91141bb5 (diff)
Allow compilation when no IPv6 stack is available.
Diffstat (limited to 'lib')
-rw-r--r--lib/connect.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 07d5f3887..3d3479218 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -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)