varargs only if STDC and com_err.h used..
authorJohn Kohl <jtkohl@mit.edu>
Mon, 18 Feb 1991 16:53:32 +0000 (16:53 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Mon, 18 Feb 1991 16:53:32 +0000 (16:53 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1724 dc483132-0cff-0310-8789-dd5450dbe970

src/kdc/main.c

index c7910339a350969b5e813f5db4b86db2d81eefd2..abe22feb438a13a1894e8bcc6f3ce82ee4b10aa5 100644 (file)
@@ -23,7 +23,10 @@ static char rcsid_main_c[] =
 #include <errno.h>
 
 #include <com_err.h>
-/* com_err gets  varargs */
+/* for STDC, com_err gets varargs/stdarg */
+#ifndef __STDC__
+#include <varargs.h>
+#endif
 
 #include <krb5/krb5.h>
 #include <krb5/osconf.h>