diff options
author | Timo Teräs <timo.teras@iki.fi> | 2018-03-14 18:47:02 +1100 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2018-03-14 15:16:03 +0400 |
commit | 782fb1e016e0342074ca9938e412a14d20d6f793 (patch) | |
tree | d65e54d7b142d26918a2245937df7ac812363488 /configure.cmake | |
parent | 38579cefa9f3a3f662e42dbe7808f82e94878686 (diff) | |
download | mariadb-git-782fb1e016e0342074ca9938e412a14d20d6f793.tar.gz |
fix ucontext configure check
musl ships the header for other purposes, but makecontext is not
implemented. fix the check to detect if makecontext is implemented
before enabling code using it.
Diffstat (limited to 'configure.cmake')
-rw-r--r-- | configure.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.cmake b/configure.cmake index a1cddbb37fa..df180e72963 100644 --- a/configure.cmake +++ b/configure.cmake @@ -1111,6 +1111,9 @@ CHECK_INCLUDE_FILE(ucontext.h HAVE_UCONTEXT_H) IF(NOT HAVE_UCONTEXT_H) CHECK_INCLUDE_FILE(sys/ucontext.h HAVE_UCONTEXT_H) ENDIF() +IF(HAVE_UCONTEXT_H) + CHECK_FUNCTION_EXISTS(makecontext HAVE_UCONTEXT_H) +ENDIF() CHECK_STRUCT_HAS_MEMBER("struct timespec" tv_sec "time.h" STRUCT_TIMESPEC_HAS_TV_SEC) CHECK_STRUCT_HAS_MEMBER("struct timespec" tv_nsec "time.h" STRUCT_TIMESPEC_HAS_TV_NSEC) |