From: Kurt Zeilenga Date: Mon, 23 Nov 1998 02:41:30 +0000 (+0000) Subject: Update code to use HAVE_STDARG and to properly include X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~1038 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1494cf2a44182073ed628c5936645ee836c20dd6;p=openldap Update code to use HAVE_STDARG and to properly include --- diff --git a/libraries/liblutil/setproctitle.c b/libraries/liblutil/setproctitle.c index 0d7f04f881..534a69bfe6 100644 --- a/libraries/liblutil/setproctitle.c +++ b/libraries/liblutil/setproctitle.c @@ -4,15 +4,10 @@ #include #include -#include - -#if defined( HAVE_STDARG_H ) && __STDC__ -#include -#else -#include -#endif #include +#include +#include /* * Copyright (c) 1990,1991 Regents of the University of Michigan. @@ -36,7 +31,7 @@ int Argc; /* original argc */ /* VARARGS */ void setproctitle -#if defined( HAVE_STDARG_H ) && __STDC__ +#if defined( HAVE_STDARG ) ( const char *fmt, ... ) #else ( fmt, va_alist ) @@ -50,7 +45,7 @@ va_dcl char buf[ 1024 ]; va_list ap; -#if defined( HAVE_STDARG_H ) && __STDC__ +#if defined( HAVE_STDARG ) va_start(ap, fmt); #else va_start(ap);