+Tue Aug 9 00:11:07 1994 Mark Eichin (eichin@cygnus.com)
+
+ * main.c: define MAXHOSTNAMELEN if it isn't there already
+ (print_status): use varargs form as well
+ * configure.in: check for stdarg.h
+
Thu Aug 4 03:38:03 1994 Tom Yu (tlyu@dragons-lair)
* Makefile.in: make install fixes
}
+/* for Ultrix and friends ... */
+#ifndef MAXHOSTNAMELEN
+#define MAXHOSTNAMELEN 64
+#endif
+
#define DEBUG
main (argc, argv)
}
+#ifdef STDARG_PROTOTYPES
void print_status( const char *fmt, ...)
+#else
+void print_status (va_alist)
+ va_dcl
+#endif
{
-va_list ap;
+ va_list ap;
+#ifndef STDARG_PROTOTYPES
+ char *fmt;
+ va_start (ap);
+ fmt = va_arg (ap, char*);
+ if (!quiet) vfprintf(stderr, fmt, ap);
+ va_end(ap);
+#else
if (! quiet){
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
va_end(ap);
}
+#endif
}