diff options
author | Ken Raeburn <raeburn@mit.edu> | 2007-02-16 21:12:40 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2007-02-16 21:12:40 +0000 |
commit | f023171de83d7d82f0952c38b9c49eb3178d6527 (patch) | |
tree | a2d43e304468a7356065fc1824a909379de3a3c5 /src/util/support/fake-addrinfo.c | |
parent | e5046173f507376edc91849e97062e410cdc95c4 (diff) | |
download | krb5-f023171de83d7d82f0952c38b9c49eb3178d6527.tar.gz krb5-f023171de83d7d82f0952c38b9c49eb3178d6527.tar.xz krb5-f023171de83d7d82f0952c38b9c49eb3178d6527.zip |
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
Diffstat (limited to 'src/util/support/fake-addrinfo.c')
-rw-r--r-- | src/util/support/fake-addrinfo.c | 7 |
1 files changed, 7 insertions, 0 deletions
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, |