summaryrefslogtreecommitdiff
path: root/include/my_context.h
diff options
context:
space:
mode:
authorGeorg Richter <georg@mariadb.com>2016-02-01 16:10:49 +0100
committerKristian Nielsen <knielsen@knielsen-hq.org>2016-02-01 16:12:00 +0100
commit8cf1f50967ff58abb7d9688ae64ac662e66389c0 (patch)
tree08f3689273e449ab9d95361fa85eb945fd7e9b0b /include/my_context.h
parent9c9d10b441fe79b111509949ca40afe1a6284c0f (diff)
downloadmariadb-git-8cf1f50967ff58abb7d9688ae64ac662e66389c0.tar.gz
MDEV-9112: Non-blocking client API missing on non-x86 platforms
The check for UCONTEXT in cmake was somehow become broken, disabling the fallback to ucontext. This caused the non-blocking client API to not be available for non-x86 platforms, on which no hand-crafted assembler implementation of my_context is available.
Diffstat (limited to 'include/my_context.h')
-rw-r--r--include/my_context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/my_context.h b/include/my_context.h
index b5daca25bba..dd44103d3b2 100644
--- a/include/my_context.h
+++ b/include/my_context.h
@@ -31,7 +31,7 @@
#define MY_CONTEXT_USE_X86_64_GCC_ASM
#elif defined(__GNUC__) && __GNUC__ >= 3 && defined(__i386__)
#define MY_CONTEXT_USE_I386_GCC_ASM
-#elif defined(HAVE_UCONTEXT)
+#elif defined(HAVE_UCONTEXT_H)
#define MY_CONTEXT_USE_UCONTEXT
#else
#define MY_CONTEXT_DISABLE