From: Ivan Maidanski Date: Thu, 12 Oct 2017 22:38:25 +0000 (+0300) Subject: Test GC initialization from non-main thread on FreeBSD and NetBSD X-Git-Tag: v8.0.0~550 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=caa12bf9421bb3340cb86c7a4edaed09fefe984b;p=gc 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(). --- 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)))))