From: Theodore Tso Date: Thu, 3 Jun 1993 12:25:24 +0000 (+0000) Subject: Portability changes X-Git-Tag: krb5-1.0-beta3~230 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d75c692451b8918ef6f8f46874545c7b22eb703b;p=krb5.git Portability changes git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2608 dc483132-0cff-0310-8789-dd5450dbe970 --- 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[] =