From 86b1e4bb1882e41052bf458f458ff10c48a95af0 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Wed, 23 Jun 1999 06:14:49 +0000 Subject: [PATCH] conditionalize krb_enable_debug git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6345 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/kx/kx.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/appl/kx/kx.c b/appl/kx/kx.c index b5605fde1..d14337ccf 100644 --- a/appl/kx/kx.c +++ b/appl/kx/kx.c @@ -619,8 +619,10 @@ doit_v5 (const char *host, int port, const char *user, #ifdef KRB4 static int use_v4 = 0; +#ifdef HAVE_KRB_ENABLE_DEBUG static int krb_debug_flag = 0; -#endif +#endif /* HAVE_KRB_ENABLE_DEBUG */ +#endif /* KRB4 */ #ifdef KRB5 static int use_v5 = 0; #endif @@ -637,9 +639,11 @@ struct getargs args[] = { #ifdef KRB4 { "krb4", '4', arg_flag, &use_v4, "Use Kerberos V4", NULL }, +#ifdef HAVE_KRB_ENABLE_DEBUG { "krb4-debug", 'D', arg_flag, &krb_debug_flag, "enable krb4 debugging" }, -#endif +#endif /* HAVE_KRB_ENABLE_DEBUG */ +#endif /* KRB4 */ #ifdef KRB5 { "krb5", '5', arg_flag, &use_v5, "Use Kerberos V5", NULL }, @@ -727,7 +731,7 @@ main(int argc, char **argv) if (!passive_flag) passive_flag = check_for_passive (getenv("DISPLAY")); -#ifdef KRB4 +#if defined(HAVE_KERNEL_ENABLE_DEBUG) if (krb_debug_flag) krb_enable_debug (); #endif