Include <stdarg.h> if STDARG_PROTOTYPES is defined and __STDC__ is not defined
authorTheodore Tso <tytso@mit.edu>
Thu, 16 Jun 1994 04:51:28 +0000 (04:51 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 16 Jun 1994 04:51:28 +0000 (04:51 +0000)
(because com_err.h only pulls in <stdarg.h> if __STDC__ is defined)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3833 dc483132-0cff-0310-8789-dd5450dbe970

src/util/ss/error.c

index 1f2d943012e9c6047c9f1d29b635f095278539a3..af755cc415d6de4311f1c69ca789a0cb65da1409 100644 (file)
@@ -28,8 +28,9 @@
 
 #ifndef __STDC__
 /* we didn't get it in com_err.h if it wasn't STDC. */
-#ifndef STDARG_PROTOTYPES
-/* and we don't need it, either, if we're using stdarg.h... */
+#ifdef STDARG_PROTOTYPES
+#include <stdarg.h>
+#else
 #include <varargs.h>
 #endif
 #endif