From 9926e824e1da0d854d8e76dab21bf85b673562d1 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 13 Oct 2017 01:38:25 +0300 Subject: [PATCH] Test GC initialization from non-main thread on FreeBSD and NetBSD Issue #180 (bdwgc). * tests/initsecondarythread.c [(FREEBSD || LINUX || NETBSD) && !NO_PTHREAD_GETATTR_NP && !NO_PTHREAD_ATTR_GET_NP] (main): Do not call GC_INIT(). --- tests/initsecondarythread.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/initsecondarythread.c b/tests/initsecondarythread.c index 3b2040db..9893fb5c 100644 --- a/tests/initsecondarythread.c +++ b/tests/initsecondarythread.c @@ -71,7 +71,9 @@ int main(void) # if !(defined(BEOS) || defined(MSWIN32) || defined(MSWINCE) \ || defined(CYGWIN32) || defined(GC_OPENBSD_UTHREADS) \ || (defined(DARWIN) && !defined(NO_PTHREAD_GET_STACKADDR_NP)) \ - || (defined(LINUX) && !defined(NACL)) \ + || ((defined(FREEBSD) || defined(LINUX) || defined(NETBSD) \ + || defined(PLATFORM_ANDROID)) && !defined(NO_PTHREAD_GETATTR_NP) \ + && !defined(NO_PTHREAD_ATTR_GET_NP)) \ || (defined(GC_SOLARIS_THREADS) && !defined(_STRICT_STDC)) \ || (!defined(STACKBOTTOM) && (defined(HEURISTIC1) \ || (!defined(LINUX_STACKBOTTOM) && !defined(FREEBSD_STACKBOTTOM))))) -- 2.40.0