From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp51.i.mail.ru (smtp51.i.mail.ru [94.100.177.111]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id BA4C3469711 for ; Tue, 12 May 2020 15:33:14 +0300 (MSK) From: sergeyb@tarantool.org Date: Tue, 12 May 2020 15:32:16 +0300 Message-Id: <89793a27bf3f65eb9ddde4b5a55a99f9a6417e16.1589284160.git.sergeyb@tarantool.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH 02/11] build: test pthread_stackseg_np() on OpenBSD List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org Cc: o.piskunov@tarantool.org From: Sergey Bronnikov 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 + #ifdef __OpenBSD__ + #include + #include + #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 -- 2.23.0