[Tarantool-patches] [PATCH 02/11] build: test pthread_stackseg_np() on OpenBSD
sergeyb at tarantool.org
sergeyb at tarantool.org
Tue May 12 15:32:16 MSK 2020
From: Sergey Bronnikov <sergeyb at tarantool.org>
Part of #4967
---
cmake/thread.cmake | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/cmake/thread.cmake b/cmake/thread.cmake
index 29b1da5f2..d51e6212e 100644
--- a/cmake/thread.cmake
+++ b/cmake/thread.cmake
@@ -32,6 +32,17 @@ function (do_pthread_checks)
${INCLUDE_MISC_PTHREAD_HEADERS}
int main() { pthread_attr_t a; pthread_getattr_np(pthread_self(), &a); }
" HAVE_PTHREAD_GETATTR_NP)
+ # pthread_stackseg_np - OpenBSD
+ check_c_source_compiles("
+ #include <pthread.h>
+ #ifdef __OpenBSD__
+ #include <sys/signal.h>
+ #include <pthread_np.h>
+ #endif
+ ${INCLUDE_MISC_PTHREAD_HEADERS}
+ stack_t ss;
+ int main() { pthread_stackseg_np(pthread_self(), &ss);
+ " HAVE_PTHREAD_STACKSEG_NP)
# pthread_attr_get_np - xBSD/macOS
check_c_source_compiles("
#include <pthread.h>
--
2.23.0
More information about the Tarantool-patches
mailing list