summaryrefslogtreecommitdiff
path: root/configure.cmake
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 /configure.cmake
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 'configure.cmake')
-rw-r--r--configure.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.cmake b/configure.cmake
index 1e64e058670..6d82b1d88de 100644
--- a/configure.cmake
+++ b/configure.cmake
@@ -1098,3 +1098,6 @@ CHECK_STRUCT_HAS_MEMBER("struct dirent" d_ino "dirent.h" STRUCT_DIRENT_HAS_D_IN
CHECK_STRUCT_HAS_MEMBER("struct dirent" d_namlen "dirent.h" STRUCT_DIRENT_HAS_D_NAMLEN)
SET(SPRINTF_RETURNS_INT 1)
CHECK_INCLUDE_FILE(ucontext.h HAVE_UCONTEXT_H)
+IF(NOT HAVE_UCONTEXT_H)
+ CHECK_INCLUDE_FILE(sys/ucontext.h HAVE_UCONTEXT_H)
+ENDIF()