diff options
author | unknown <msvensson@shellback.(none)> | 2006-10-08 16:19:23 +0200 |
---|---|---|
committer | unknown <msvensson@shellback.(none)> | 2006-10-08 16:19:23 +0200 |
commit | 3651933d0932e3870f1bb66bb6373e3d113ad6ad (patch) | |
tree | 6bef2a6081333c1b95b32924ad40dd64ab448b20 | |
parent | 4404ea6418c6af05b093db313905c7cdd267be75 (diff) | |
download | mariadb-git-3651933d0932e3870f1bb66bb6373e3d113ad6ad.tar.gz |
vsnprintf is not available on win2003-x86 host, as this is just a debug functionality - disable it for now.
-rw-r--r-- | client/mysqltest.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c index 3d457261980..3f8bc99bdf8 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -728,10 +728,12 @@ void die(const char *fmt, ...) if (fmt) { #ifdef DBUG_ON +#ifndef __WIN__ char buff[256]; vsnprintf(buff, sizeof(buff), fmt, args); DBUG_PRINT("error", ("%s", buff)); #endif +#endif fprintf(stderr, "mysqltest: "); if (cur_file && cur_file != file_stack) fprintf(stderr, "In included file \"%s\": ", @@ -855,8 +857,10 @@ void warning_msg(const char *fmt, ...) dynstr_append_mem(&ds_warning_messages, buff, len); } +#ifndef __WIN__ len= vsnprintf(buff, sizeof(buff), fmt, args); dynstr_append_mem(&ds_warning_messages, buff, len); +#endif dynstr_append(&ds_warning_messages, "\n"); va_end(args); |