mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-24 17:22:15 +01:00
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.
20 lines
908 B
Diff
20 lines
908 B
Diff
diff -ru mariadb-10.1.12.orig/configure.cmake mariadb-10.1.12/configure.cmake
|
|
--- mariadb-10.1.12.orig/configure.cmake 2016-02-24 16:25:21.000000000 +0200
|
|
+++ mariadb-10.1.12/configure.cmake 2016-03-08 21:11:52.767533395 +0200
|
|
@@ -1087,9 +1087,12 @@
|
|
CHECK_STRUCT_HAS_MEMBER("struct dirent" d_ino "dirent.h" STRUCT_DIRENT_HAS_D_INO)
|
|
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)
|
|
+CHECK_INCLUDE_FILE(ucontext.h HAVE_UCONTEXT_HEADER)
|
|
+IF(NOT HAVE_UCONTEXT_HEADER)
|
|
+ CHECK_INCLUDE_FILE(sys/ucontext.h HAVE_UCONTEXT_HEADER)
|
|
+ENDIF()
|
|
+IF(HAVE_UCONTEXT_HEADER)
|
|
+ CHECK_FUNCTION_EXISTS(makecontext HAVE_UCONTEXT_H)
|
|
ENDIF()
|
|
|
|
CHECK_STRUCT_HAS_MEMBER("struct timespec" tv_sec "time.h" STRUCT_TIMESPEC_HAS_TV_SEC)
|