]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Guard inclusion of stdarg.h and definition of VA_START
authorJim Meyering <jim@meyering.net>
Thu, 24 Oct 1996 04:46:33 +0000 (04:46 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 24 Oct 1996 04:46:33 +0000 (04:46 +0000)
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.

src/stty.c

index b61500dfde44d87731201719b82b965a12969af5..bfba681877017aeae7d158730b31563b0d5fac3e 100644 (file)
@@ -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)