From 1d8ad7e54ce672b2bfa28cc1e0cdef3aee3e8eb1 Mon Sep 17 00:00:00 2001
From: Sergei Golubchik <sergii@pisem.net>
Date: Fri, 22 Oct 2010 10:32:54 +0200
Subject: [PATCH] workaround for MySQL BUG#57491

---
 client/mysqltest.cc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/client/mysqltest.cc b/client/mysqltest.cc
index 6dd6252c64..60b7501b0c 100644
--- a/client/mysqltest.cc
+++ b/client/mysqltest.cc
@@ -722,6 +722,10 @@ void handle_no_error(struct st_command*);
 
 #ifdef EMBEDDED_LIBRARY
 
+/* workaround for MySQL BUG#57491 */
+#undef MY_WME
+#define MY_WME 0
+
 /* attributes of the query thread */
 pthread_attr_t cn_thd_attrib;
 
-- 
2.30.9