From 0642901850b91d71a8a0e8eb5438fd0e46656478 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 2 Nov 2006 02:50:49 +0000 Subject: [PATCH] * fake-addrinfo.c (krb5int_lock_fac, krb5int_unlock_fac): Define only if FAI_CACHE git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18755 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/support/fake-addrinfo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util/support/fake-addrinfo.c b/src/util/support/fake-addrinfo.c index 6db94cf48..80c7d6f03 100644 --- a/src/util/support/fake-addrinfo.c +++ b/src/util/support/fake-addrinfo.c @@ -643,7 +643,9 @@ static int find_face (const char *name, struct face **entry) #endif +#ifdef FAI_CACHE static int krb5int_lock_fac(void), krb5int_unlock_fac(void); +#endif static inline int fai_add_hosts_by_name (const char *name, struct addrinfo *template, @@ -1313,6 +1315,7 @@ void freeaddrinfo (struct addrinfo *ai) } #endif /* WRAP_GETADDRINFO */ +#ifdef FAI_CACHE static int krb5int_lock_fac (void) { int err; @@ -1326,6 +1329,7 @@ static int krb5int_unlock_fac (void) { return k5_mutex_unlock(&krb5int_fac.lock); } +#endif /* Some systems don't define in6addr_any. */ const struct in6_addr krb5int_in6addr_any = IN6ADDR_ANY_INIT; -- 2.26.2