summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2013-06-15 14:22:03 +0200
committerVladislav Vaintroub <wlad@montyprogram.com>2013-06-15 14:22:03 +0200
commit4b058643cd6396b46898380ba7fee5d583e18cfd (patch)
treea3fc883411b6d6d56b3250d6ce43e0b9096bcefc /tests
parentb54a4b7621b4bdcc9846a968e4268ea71e88dab8 (diff)
downloadmariadb-git-4b058643cd6396b46898380ba7fee5d583e18cfd.tar.gz
MDEV-4601 : Allow MariaDB to be build without non-blocking client.
Non-blocking client currently can be build on Windows, GCC on i386 and x64, or any OS wth ucontext.h header. Prior to this patch, build failed if neither of these conditions is true. Fix to avoid compiler errors in these case - non-blocking API would not be useful on , but otherwise everything will work as before.
Diffstat (limited to 'tests')
-rw-r--r--tests/mysql_client_fw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/mysql_client_fw.c b/tests/mysql_client_fw.c
index 207eaead135..9ce4737d874 100644
--- a/tests/mysql_client_fw.c
+++ b/tests/mysql_client_fw.c
@@ -30,8 +30,9 @@
and use poll()/select() to wait for them to complete. This way we can get
a good coverage testing of the non-blocking API as well.
*/
+#include <my_context.h>
static my_bool non_blocking_api_enabled= 0;
-#if !defined(EMBEDDED_LIBRARY)
+#if !defined(EMBEDDED_LIBRARY) && !defined(MY_CONTEXT_DISABLE)
#define WRAP_NONBLOCK_ENABLED non_blocking_api_enabled
#include "nonblock-wrappers.h"
#endif