From d75c692451b8918ef6f8f46874545c7b22eb703b Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Thu, 3 Jun 1993 12:25:24 +0000 Subject: [PATCH] Portability changes git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2608 dc483132-0cff-0310-8789-dd5450dbe970 --- src/util/et/com_err.c | 17 ++++++----------- 1 file 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 #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 for STDARG_PROTOTYPES */ +#include -#ifdef __GNUC__ -#undef VARARGS -#endif - -#if defined(__STDC__) && !defined(VARARGS) +#if __STDC__ || defined(STDARG_PROTOTYPES) #include #else #include +#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 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[] = -- 2.26.2