From: Jeffrey Altman Date: Tue, 9 May 2006 22:26:04 +0000 (+0000) Subject: vsnprintf not present on windows X-Git-Tag: krb5-1.5-alpha1~32 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=15a4448eeff11554e17f77b481ae5881a7ec89a6;p=krb5.git vsnprintf not present on windows vsnprintf is not present on Windows. Microsoft provides the _vsnprintf form instead. Add a macro to allow this file to compile. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17993 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/support/errors.c b/src/util/support/errors.c index 17f412726..67ddf625c 100644 --- a/src/util/support/errors.c +++ b/src/util/support/errors.c @@ -10,6 +10,12 @@ #include "k5-thread.h" #include "k5-platform.h" +#ifdef _WIN32 +#ifndef vsnprintf +#define vsnprintf _vsnprintf +#endif +#endif + /* It would be nice to just use error_message() always. Pity that it's defined in a library that depends on this one, and we're not allowed to make circular dependencies. */