Skip to content
Snippets Groups Projects
Commit 8cd76d39 authored by Dan Fandrich's avatar Dan Fandrich
Browse files

Allow compilation when no IPv6 stack is available.

parent 885805b5
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment