From: Ivan Maidanski Date: Fri, 6 Apr 2018 05:59:22 +0000 (+0300) Subject: Define GC_FREEBSD_THREADS and GC_ADD_CALLER macros for kFreeBSD X-Git-Tag: v7.6.6~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=96df3068292538b877519949ec9ec1c26c8a2d24;p=gc Define GC_FREEBSD_THREADS and GC_ADD_CALLER macros for kFreeBSD (back-port of commit 5700d205 from 'master') * include/gc_config_macros.h [__FreeBSD_kernel__] (GC_FREEBSD_THREADS): Define macro. * include/gc_config_macros.h [__FreeBSD_kernel__ && !GC_CAN_SAVE_CALL_STACKS] (GC_ADD_CALLER): Likewise. --- diff --git a/include/gc_config_macros.h b/include/gc_config_macros.h index e8748f5d..8c899129 100644 --- a/include/gc_config_macros.h +++ b/include/gc_config_macros.h @@ -100,7 +100,8 @@ && !defined(GC_OSF1_THREADS) && !defined(GC_IRIX_THREADS) /* FIXME: Should we really need for FreeBSD and NetBSD to check */ /* that no other GC_xxx_THREADS macro is set? */ -# if defined(__FreeBSD__) || defined(__DragonFly__) +# if defined(__FreeBSD__) || defined(__DragonFly__) \ + || defined(__FreeBSD_kernel__) # define GC_FREEBSD_THREADS # elif defined(__NetBSD__) # define GC_NETBSD_THREADS @@ -322,6 +323,7 @@ /* retrieve the call chain. */ #if (defined(__linux__) || defined(__NetBSD__) || defined(__OpenBSD__) \ || defined(__FreeBSD__) || defined(__DragonFly__) \ + || defined(__FreeBSD_kernel__) \ || defined(PLATFORM_ANDROID) || defined(__ANDROID__)) \ && !defined(GC_CAN_SAVE_CALL_STACKS) # define GC_ADD_CALLER