diff options
author | Jim Meyering <jim@meyering.net> | 1996-10-24 04:46:33 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-10-24 04:46:33 +0000 |
commit | b8ad9be9085020c99d062fc53285063dd6b04fae (patch) | |
tree | 32d17bf744909f73e7f34f3f423b8d73825f23d6 | |
parent | 2be918d5cd380343fcadbf66594e8339b7e19eb2 (diff) | |
download | coreutils-b8ad9be9085020c99d062fc53285063dd6b04fae.tar.xz |
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.
-rw-r--r-- | src/stty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stty.c b/src/stty.c index b61500dfd..bfba68187 100644 --- a/src/stty.c +++ b/src/stty.c @@ -39,7 +39,7 @@ # include <sys/ptem.h> #endif #include <getopt.h> -#ifdef __STDC__ +#if PROTOTYPES # include <stdarg.h> # 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) |