From: Ken Raeburn Date: Fri, 16 Feb 2007 21:12:40 +0000 (+0000) Subject: Don't use struct in6_addr if we don't have IPv6 support X-Git-Tag: krb5-1.7-alpha1~1288 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f023171de83d7d82f0952c38b9c49eb3178d6527;p=krb5.git 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 --- 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,