From 8cd76d392133a0c8a52ff0cb9f56951e19657936 Mon Sep 17 00:00:00 2001
From: Dan Fandrich <dan@coneharvesters.com>
Date: Fri, 10 Oct 2008 03:46:32 +0000
Subject: [PATCH] Allow compilation when no IPv6 stack is available.

---
 lib/connect.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/connect.c b/lib/connect.c
index 07d5f38871..3d3479218c 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)
-- 
GitLab