From f39dc3d314fc68c4f306c077f8eaf2cfd4dda79e Mon Sep 17 00:00:00 2001 From: John Kohl Date: Thu, 19 Apr 1990 15:40:06 +0000 Subject: [PATCH] krb5_kdc_udp_portname needs to be inside KRB5_USE_INET git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@521 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/locate_kdc.c | 2 ++ src/lib/krb5/os/osconfig.c | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/os/locate_kdc.c b/src/lib/krb5/os/locate_kdc.c index 4094b9ac4..ca039199a 100644 --- a/src/lib/krb5/os/locate_kdc.c +++ b/src/lib/krb5/os/locate_kdc.c @@ -31,7 +31,9 @@ static char rcsid_locate_kdc_c[] = #include #include "os-proto.h" +#ifdef KRB5_USE_INET extern char *krb5_kdc_udp_portname; +#endif /* * returns count of number of addresses found diff --git a/src/lib/krb5/os/osconfig.c b/src/lib/krb5/os/osconfig.c index 1e73d8bf1..b6599363e 100644 --- a/src/lib/krb5/os/osconfig.c +++ b/src/lib/krb5/os/osconfig.c @@ -20,5 +20,7 @@ static char rcsid_config_fn_c [] = char *krb5_config_file = DEFAULT_CONFIG_FILENAME; -char *krb5_kdc_udp_portname = KDC_PORTNAME; +#ifdef KRB5_USE_INET +char *krb5_kdc_udp_portname = KDC_PORTNAME; +#endif -- 2.26.2