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
* 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 <win-mac.h>
#endif
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
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 */
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