From 1d130cc6970073b5459801b51a2b87e4f08bd97c Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Thu, 25 Apr 2013 15:11:59 +0200 Subject: Fix build on Windows --- plugin/audit_null/audit_null.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugin/audit_null') 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; -- cgit v1.2.1