From: Danny Mayer Date: Wed, 27 Aug 2003 02:19:32 +0000 (-0400) Subject: Add HAVE_VSNPRINTF macro to prevent extra declarations if already defined by the OS. X-Git-Tag: NTP_4_2_0~6^2~5^2^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3a02ee1a3c3b2057ebdb99cf3eb2121c2c99c455;p=thirdparty%2Fntp.git Add HAVE_VSNPRINTF macro to prevent extra declarations if already defined by the OS. bk: 3f4c1534rCyP3PeBd006BZzgad66Ug --- diff --git a/include/l_stdlib.h b/include/l_stdlib.h index 5461391910..3f242b7994 100644 --- a/include/l_stdlib.h +++ b/include/l_stdlib.h @@ -152,7 +152,9 @@ extern int snprintf P((char *, size_t, const char *, ...)); #endif /* HMS: does this need further protection? */ +#ifndef HAVE_VSNPRINTF extern int vsnprintf P((char *, size_t, const char *, va_list)); +#endif #ifdef DECL_SRAND48_0 extern void srand48 P((long)); diff --git a/ports/winnt/include/config.h b/ports/winnt/include/config.h index 41fee1f250..cc7d10b7c9 100644 --- a/ports/winnt/include/config.h +++ b/ports/winnt/include/config.h @@ -84,6 +84,7 @@ int NT_set_process_priority(void); /* Define this function */ # define HAVE_SETVBUF # define HAVE_VSPRINTF # define HAVE_SNPRINTF +# define HAVE_VSNPRINTF # define HAVE_PROTOTYPES /* from ntpq.mak */ # define HAVE_MEMMOVE # define HAVE_TERMIOS_H