diff options
author | Jeffrey Altman <jaltman@secure-endpoints.com> | 2006-05-09 22:26:04 +0000 |
---|---|---|
committer | Jeffrey Altman <jaltman@secure-endpoints.com> | 2006-05-09 22:26:04 +0000 |
commit | 15a4448eeff11554e17f77b481ae5881a7ec89a6 (patch) | |
tree | b75a8f7620054742b69df0a26306f181244edcad | |
parent | cb446fa43a63a93baff16cb7a8bd540581b367b0 (diff) | |
download | krb5-15a4448eeff11554e17f77b481ae5881a7ec89a6.tar.gz krb5-15a4448eeff11554e17f77b481ae5881a7ec89a6.tar.xz krb5-15a4448eeff11554e17f77b481ae5881a7ec89a6.zip |
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.c | 6 |
1 files changed, 6 insertions, 0 deletions
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. */ |