mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
simplified the sin6_scope_id test and removed some left-overs from the previous
way of detecting it
This commit is contained in:
parent
45e26b5c02
commit
0f73af4470
@ -176,7 +176,6 @@ CARES_CHECK_STRUCT(
|
|||||||
[Define to 1 if you have struct sockaddr_in6.]) ac_have_sockaddr_in6=yes
|
[Define to 1 if you have struct sockaddr_in6.]) ac_have_sockaddr_in6=yes
|
||||||
)
|
)
|
||||||
|
|
||||||
if test "$ac_have_sockaddr_in6" = "yes" ; then
|
|
||||||
AC_CHECK_MEMBER(struct sockaddr_in6.sin6_scope_id,
|
AC_CHECK_MEMBER(struct sockaddr_in6.sin6_scope_id,
|
||||||
AC_DEFINE_UNQUOTED(HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID,1,
|
AC_DEFINE_UNQUOTED(HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID,1,
|
||||||
[Define to 1 if your struct sockaddr_in6 has sin6_scope_id.])
|
[Define to 1 if your struct sockaddr_in6 has sin6_scope_id.])
|
||||||
@ -191,9 +190,7 @@ AC_CHECK_MEMBER(struct sockaddr_in6.sin6_scope_id,
|
|||||||
#ifdef HAVE_NETINET_IN_H
|
#ifdef HAVE_NETINET_IN_H
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#endif
|
#endif
|
||||||
], [sockaddr_in6], [sin6_scope_id],
|
])
|
||||||
)
|
|
||||||
fi
|
|
||||||
|
|
||||||
dnl check for the addrinfo structure
|
dnl check for the addrinfo structure
|
||||||
AC_CHECK_MEMBER(struct addrinfo.ai_flags,
|
AC_CHECK_MEMBER(struct addrinfo.ai_flags,
|
||||||
|
Loading…
Reference in New Issue
Block a user