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: v8.0.0~252 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5700d205c3d41567e03a519a052234689fe84be0;p=platform%2Fupstream%2Flibgc.git Define GC_FREEBSD_THREADS and GC_ADD_CALLER macros for kFreeBSD * 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 7a58710..a043db8 100644 --- a/include/gc_config_macros.h +++ b/include/gc_config_macros.h @@ -91,8 +91,8 @@ # define GC_HAIKU_THREADS # elif defined(__OpenBSD__) # define GC_OPENBSD_THREADS -# elif (defined(__FreeBSD__) && !defined(SN_TARGET_ORBIS)) \ - || defined(__DragonFly__) +# elif defined(__DragonFly__) || defined(__FreeBSD_kernel__) \ + || (defined(__FreeBSD__) && !defined(SN_TARGET_ORBIS)) # define GC_FREEBSD_THREADS # elif defined(__NetBSD__) # define GC_NETBSD_THREADS @@ -332,8 +332,9 @@ /* of compilers. */ /* This may also be desirable if it is possible but expensive to */ /* retrieve the call chain. */ -#if (defined(__linux__) || defined(__NetBSD__) || defined(__OpenBSD__) \ - || defined(__FreeBSD__) || defined(__DragonFly__) || defined(__HAIKU__) \ +#if (defined(__linux__) || defined(__DragonFly__) || defined(__FreeBSD__) \ + || defined(__FreeBSD_kernel__) || defined(__HAIKU__) \ + || defined(__NetBSD__) || defined(__OpenBSD__) \ || defined(HOST_ANDROID) || defined(__ANDROID__)) \ && !defined(GC_CAN_SAVE_CALL_STACKS) # define GC_ADD_CALLER