From: Jim Meyering Date: Thu, 24 Oct 1996 04:46:33 +0000 (+0000) Subject: Guard inclusion of stdarg.h and definition of VA_START X-Git-Tag: TEXTUTILS-1_19q~213 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8ad9be9085020c99d062fc53285063dd6b04fae;p=thirdparty%2Fcoreutils.git Guard inclusion of stdarg.h and definition of VA_START with #if PROTOTYPES rather than with #ifdef __STDC__. The latter loses with Dynix/PTX. (wrapf) [PROTOTYPES]: Similarly, guard ANSI-style ... definition. Suggestion from Marcus Daniels. --- diff --git a/src/stty.c b/src/stty.c index b61500dfde..bfba681877 100644 --- a/src/stty.c +++ b/src/stty.c @@ -39,7 +39,7 @@ # include #endif #include -#ifdef __STDC__ +#if PROTOTYPES # include # define VA_START(args, lastarg) va_start(args, lastarg) #else @@ -422,7 +422,7 @@ char *program_name; /* VARARGS */ static void -#ifdef __STDC__ +#if PROTOTYPES wrapf (const char *message,...) #else wrapf (message, va_alist)