Use the AC_CHECK_MEMBER() function for check struct members instead of

inventing and providing our own. Hopefully this solves a HP-UX 11.00 problem.
This commit is contained in:
Daniel Stenberg 2005-09-10 21:09:44 +00:00
parent 836d88a4b8
commit 8a38805e82
2 changed files with 4 additions and 23 deletions

View file

@ -176,7 +176,10 @@ CARES_CHECK_STRUCT(
)
if test "$ac_have_sockaddr_in6" = "yes" ; then
CARES_CHECK_STRUCT_MEMBER(
AC_CHECK_MEMBER(struct sockaddr_in6.sin6_scope_id,
AC_DEFINE_UNQUOTED(HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID,1,
[Define to 1 if your struct sockaddr_in6 has sin6_scope_id.])
, ,
[
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
@ -188,8 +191,6 @@ CARES_CHECK_STRUCT_MEMBER(
#include <netinet/in.h>
#endif
], [sockaddr_in6], [sin6_scope_id],
AC_DEFINE_UNQUOTED(HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID,1,
[Define to 1 if your struct sockaddr_in6 has sin6_scope_id.])
)
fi