summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2013-04-25 15:11:59 +0200
committerVladislav Vaintroub <wlad@montyprogram.com>2013-04-25 15:11:59 +0200
commit1d130cc6970073b5459801b51a2b87e4f08bd97c (patch)
treebef11676a1139964913dce68c28671c5f3ad31c5
parent203264ddc9c399fa4a86b589ae638eccfb66e9ed (diff)
downloadmariadb-git-1d130cc6970073b5459801b51a2b87e4f08bd97c.tar.gz
Fix build on Windows
-rw-r--r--plugin/audit_null/audit_null.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugin/audit_null/audit_null.c b/plugin/audit_null/audit_null.c
index 916c7187a57..fd4cd1d1e87 100644
--- a/plugin/audit_null/audit_null.c
+++ b/plugin/audit_null/audit_null.c
@@ -22,6 +22,10 @@
#define __attribute__(A)
#endif
+#ifdef _MSC_VER
+#define snprintf _snprintf
+#endif
+
static volatile int ncalls; /* for SHOW STATUS, see below */
static volatile int ncalls_general_log;
static volatile int ncalls_general_error;