aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Altman <jaltman@secure-endpoints.com>2006-05-09 22:26:04 +0000
committerJeffrey Altman <jaltman@secure-endpoints.com>2006-05-09 22:26:04 +0000
commit15a4448eeff11554e17f77b481ae5881a7ec89a6 (patch)
treeb75a8f7620054742b69df0a26306f181244edcad
parentcb446fa43a63a93baff16cb7a8bd540581b367b0 (diff)
downloadkrb5-15a4448eeff11554e17f77b481ae5881a7ec89a6.zip
krb5-15a4448eeff11554e17f77b481ae5881a7ec89a6.tar.gz
krb5-15a4448eeff11554e17f77b481ae5881a7ec89a6.tar.bz2
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
-rw-r--r--src/util/support/errors.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/support/errors.c b/src/util/support/errors.c
index 17f4127..67ddf62 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. */