Don't use struct in6_addr if we don't have IPv6 support
authorKen Raeburn <raeburn@mit.edu>
Fri, 16 Feb 2007 21:12:40 +0000 (21:12 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 16 Feb 2007 21:12:40 +0000 (21:12 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19165 dc483132-0cff-0310-8789-dd5450dbe970

src/util/support/fake-addrinfo.c

index 80c7d6f030839e108c9e3a34ddab0f2a71303ddd..2cd8d92c3a2ea634394237b9f1b2729c14b59782 100644 (file)
@@ -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,