#ifndef HAVE_SETPROCTITLE
#include <stdio.h>
-#include <stdlib.h>
+
+#include <ac/stdlib.h>
#include <ac/setproctitle.h>
#include <ac/string.h>
#if defined( HAVE_STDARG )
( const char *fmt, ... )
#else
- ( fmt, va_alist )
-const char *fmt;
+ ( va_alist )
va_dcl
#endif
{
#if defined( HAVE_STDARG )
va_start(ap, fmt);
#else
+ const char *fmt;
+
va_start(ap);
+ fmt = va_arg(ap, const char *);
#endif
#ifdef HAVE_VSNPRINTF