1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

Allow compilation when no IPv6 stack is available.

This commit is contained in:
Dan Fandrich 2008-10-10 03:46:32 +00:00
parent 885805b5df
commit 8cd76d3921

View File

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