From ce4d7350ebb16e82d408d908116d87717369abcc Mon Sep 17 00:00:00 2001 From: Richard Basch Date: Sat, 22 Feb 1997 15:28:44 +0000 Subject: [PATCH] I really did mean #ifdef unix... I added AIX for compatibility. Basically, only old Unix comerr will have the backwards compatibility. New systems, such as MVS/OpenEdition, MacOS, VMS, etc. should NOT. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9957 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/et/com_err.h | 6 +++++- src/util/et/error_message.c | 2 +- src/util/et/et_h.awk | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/util/et/com_err.h b/src/util/et/com_err.h index aebe1bb68..c2f5478d2 100644 --- a/src/util/et/com_err.h +++ b/src/util/et/com_err.h @@ -16,6 +16,10 @@ * programs are not including that file. We probably want to * come up with a better way of handling this problem. */ +#if defined(_AIX) && !defined(unix) +#define unix +#endif + #if defined(_MSDOS) || defined (_WIN32) #include #endif @@ -76,7 +80,7 @@ KRB5_DLLIMP extern errcode_t KRB5_CALLCONV add_error_table KRB5_DLLIMP extern errcode_t KRB5_CALLCONV remove_error_table ET_P((const struct error_table FAR *)); -#if !(defined(_MSDOS)||defined(_WIN32)) +#ifdef unix /* * The display routine should be application specific. A global hook, * may cause inappropriate display procedures to be called between diff --git a/src/util/et/error_message.c b/src/util/et/error_message.c index c20e1d0a9..7ffe1b67a 100644 --- a/src/util/et/error_message.c +++ b/src/util/et/error_message.c @@ -39,7 +39,7 @@ extern const int sys_nerr; static char buffer[ET_EBUFSIZ]; -#if defined(_MSDOS)||defined(_WIN32) +#if !defined(unix) && !defined(_AIX) static struct et_list * _et_list = (struct et_list *) NULL; #else /* Old interface compatibility */ diff --git a/src/util/et/et_h.awk b/src/util/et/et_h.awk index 3f0639db9..8f23d3411 100644 --- a/src/util/et/et_h.awk +++ b/src/util/et/et_h.awk @@ -148,7 +148,7 @@ END { print "" > outfile print "extern struct error_table et_" table_name "_error_table;" > outfile print "" > outfile - print "#if !(defined(_MSDOS)||defined(_WIN32))" > outfile + print "#if defined(unix) || defined(_AIX)" > outfile print "/* for compatibility with older versions... */" > outfile print "extern void initialize_" table_name "_error_table ();" > outfile print "#define init_" table_name "_err_tbl initialize_" table_name "_error_table" > outfile -- 2.26.2