From aeb7e732c1fdf072274294156f219c6aa643ec1c Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 8 Mar 2001 03:47:22 +0000 Subject: [PATCH] * test_et.c (main): Only use sys_nerr tests if HAVE_SYS_ERRLIST git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13062 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/et/ChangeLog | 4 ++++ src/util/et/Makefile.in | 2 +- src/util/et/test_et.c | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/util/et/ChangeLog b/src/util/et/ChangeLog index 8853feb54..a49f27330 100644 --- a/src/util/et/ChangeLog +++ b/src/util/et/ChangeLog @@ -1,3 +1,7 @@ +2001-03-07 Ken Raeburn + + * test_et.c (main): Only use sys_nerr tests if HAVE_SYS_ERRLIST. + 2001-01-19 Ken Raeburn * com_err.h (add_error_table, remove_error_table): Annotate as diff --git a/src/util/et/Makefile.in b/src/util/et/Makefile.in index a6f85798a..b806e73ec 100644 --- a/src/util/et/Makefile.in +++ b/src/util/et/Makefile.in @@ -159,7 +159,7 @@ install-unix:: compile_et compile_et: $(srcdir)/compile_et.sh $(srcdir)/config_script $(SHELL) $(srcdir)/config_script $(srcdir)/compile_et.sh \ - $(mydatadir) $(AWK) $(SED) > compile_et + "$(mydatadir)" $(AWK) $(SED) > compile_et chmod 755 compile_et rebuild: rebuild-c rebuild-h diff --git a/src/util/et/test_et.c b/src/util/et/test_et.c index 50edcbd64..6b6b5a945 100644 --- a/src/util/et/test_et.c +++ b/src/util/et/test_et.c @@ -17,8 +17,10 @@ int main() printf("Msg TGT-expired is '%s'\n", error_message(KRB_MK_AP_TGTEXP)); printf("Msg EPERM is '%s'\n", error_message(EPERM)); printf("Msg FOO_ERR is '%s'\n", error_message(FOO_ERR)); +#ifdef HAVE_SYS_ERRLIST printf("Msg {sys_nerr-1} is '%s'\n", error_message(sys_nerr-1)); printf("Msg {sys_nerr} is '%s'\n", error_message(sys_nerr)); +#endif printf("Msg 0 is '%s'\n", error_message(0)); printf("With 0: tgt-expired -> %s\n", error_message(KRB_MK_AP_TGTEXP)); @@ -38,7 +40,9 @@ int main() printf("Msg for TGT-expired is '%s'\n", error_message(KRB_MK_AP_TGTEXP)); +#ifdef HAVE_SYS_ERRLIST printf("Msg {sys_nerr-1} is '%s'\n", error_message(sys_nerr-1)); +#endif printf("Msg FOO_ERR is '%s'\n", error_message(FOO_ERR)); printf("Msg KRB_SKDC_CANT is '%s'\n", error_message(KRB_SKDC_CANT)); -- 2.26.2