diff options
author | Theodore Tso <tytso@mit.edu> | 1993-06-03 12:25:24 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1993-06-03 12:25:24 +0000 |
commit | d75c692451b8918ef6f8f46874545c7b22eb703b (patch) | |
tree | 05433e1f00f3f0777ae075b334afb1257084d80a /src/util/et/com_err.c | |
parent | 7e456834448e1e6a67b58a5e3094e23897d5824c (diff) | |
download | krb5-d75c692451b8918ef6f8f46874545c7b22eb703b.tar.gz krb5-d75c692451b8918ef6f8f46874545c7b22eb703b.tar.xz krb5-d75c692451b8918ef6f8f46874545c7b22eb703b.zip |
Portability changes
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2608 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/et/com_err.c')
-rw-r--r-- | src/util/et/com_err.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/util/et/com_err.c b/src/util/et/com_err.c index 78b91ce0a..c3aa8556d 100644 --- a/src/util/et/com_err.c +++ b/src/util/et/com_err.c @@ -7,26 +7,20 @@ #include <stdio.h> #include "mit-sipb-copyright.h" -/* - * If we're using gcc, *always* use stdarg. However, there are a small - * number of native platforms (sun3 and sun4, sunos41) that don't have - * stdarg, but only have varargs... they can define VARARGS in the config - * files, but we'll turn it off here for gcc. - */ +/* Need <krb5/config.h> for STDARG_PROTOTYPES */ +#include <krb5/krb5.h> -#ifdef __GNUC__ -#undef VARARGS -#endif - -#if defined(__STDC__) && !defined(VARARGS) +#if __STDC__ || defined(STDARG_PROTOTYPES) #include <stdarg.h> #else #include <varargs.h> +#define VARARGS #endif #include "error_table.h" #include "internal.h" +#ifdef notdef /* * Protect us from header version (externally visible) of com_err, so * we can survive in a <varargs.h> environment. I think. @@ -34,6 +28,7 @@ #define com_err com_err_external #include "com_err.h" #undef com_err +#endif #if ! lint static const char rcsid[] = |