From 15a4448eeff11554e17f77b481ae5881a7ec89a6 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Tue, 9 May 2006 22:26:04 +0000 Subject: [PATCH] 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 --- src/util/support/errors.c | 6 ++++++ 1 file changed, 6 insertions(+) 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. */ -- 2.26.2