changed HAVE_SIN6_SCOPE_ID define to HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID since just found that ares already uses this define.

This commit is contained in:
Gunter Knauf
2008-12-30 08:05:38 +00:00
parent 104377d718
commit 1cc50d31f9
12 changed files with 16 additions and 14 deletions

View File

@@ -769,7 +769,7 @@ singleipconnect(struct connectdata *conn,
/* no socket, no connection */
return CURL_SOCKET_BAD;
#ifdef ENABLE_IPV6
#if defined(ENABLE_IPV6) && defined(HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID)
if (conn->scope && (addr.family == AF_INET6))
sa6->sin6_scope_id = conn->scope;
#endif