projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b2f711
)
* fake-addrinfo.c (krb5int_lock_fac, krb5int_unlock_fac): Define only if FAI_CACHE
author
Ken Raeburn
<raeburn@mit.edu>
Thu, 2 Nov 2006 02:50:49 +0000
(
02:50
+0000)
committer
Ken Raeburn
<raeburn@mit.edu>
Thu, 2 Nov 2006 02:50:49 +0000
(
02:50
+0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18755
dc483132
-0cff-0310-8789-
dd5450dbe970
src/util/support/fake-addrinfo.c
patch
|
blob
|
history
diff --git
a/src/util/support/fake-addrinfo.c
b/src/util/support/fake-addrinfo.c
index 6db94cf48e09d6bec60ade1140bb078c33052595..80c7d6f030839e108c9e3a34ddab0f2a71303ddd 100644
(file)
--- 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;