aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-12-01 17:30:52 +0100
committerYang Tse <yangsita@gmail.com>2010-12-01 17:30:52 +0100
commit5d47bf377668846d915c3d8a3f22cfdf66041512 (patch)
tree575120de85a73d14fa51cac9e08a99c0b7e22412
parent11cddb68e0ff73c8297b85e51bebaf6f968a8d62 (diff)
connect: fix compiler warning: unused variable
-rw-r--r--lib/connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connect.c b/lib/connect.c
index 0e5a73cb0..dd7eb7276 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -824,7 +824,7 @@ singleipconnect(struct connectdata *conn,
struct SessionHandle *data = conn->data;
curl_socket_t sockfd;
CURLcode res = CURLE_OK;
-#ifdef ENABLE_IPV6
+#if defined(ENABLE_IPV6) && defined(HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID)
struct sockaddr_in6 * const sa6 = (void *)&addr.sa_addr;
#endif