From f023171de83d7d82f0952c38b9c49eb3178d6527 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Fri, 16 Feb 2007 21:12:40 +0000 Subject: [PATCH] Don't use struct in6_addr if we don't have IPv6 support git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19165 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/support/fake-addrinfo.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/util/support/fake-addrinfo.c b/src/util/support/fake-addrinfo.c index 80c7d6f03..2cd8d92c3 100644 --- a/src/util/support/fake-addrinfo.c +++ b/src/util/support/fake-addrinfo.c @@ -1331,8 +1331,15 @@ static int krb5int_unlock_fac (void) } #endif +#if defined(KRB5_USE_INET6) /* Some systems don't define in6addr_any. */ const struct in6_addr krb5int_in6addr_any = IN6ADDR_ANY_INIT; +#else +/* Are any of the systems without IPv6 support among those where + we cross-check the actual exported symbols against the export + list? Not sure, play it safe. */ +const char krb5int_in6addr_any = 0; +#endif int krb5int_getaddrinfo (const char *node, const char *service, const struct addrinfo *hints, -- 2.26.2