From b16cd96d0797f2d4f084bae35fa6af597bec6bd0 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Sun, 22 Apr 2012 10:14:15 +0400 Subject: [PATCH] Use pthread_key for thread-local storage on FreeBSD * include/private/thread_local_alloc.h (USE_PTHREAD_SPECIFIC): Define for FreeBSD by default (instead of USE_CUSTOM_SPECIFIC). --- include/private/thread_local_alloc.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/private/thread_local_alloc.h b/include/private/thread_local_alloc.h index 3ebb922c..67dee3df 100644 --- a/include/private/thread_local_alloc.h +++ b/include/private/thread_local_alloc.h @@ -46,8 +46,9 @@ && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >=3)) # define USE_COMPILER_TLS # elif defined(GC_DGUX386_THREADS) || defined(GC_OSF1_THREADS) \ - || defined(GC_DARWIN_THREADS) || defined(GC_AIX_THREADS) \ - || defined(GC_NETBSD_THREADS) || defined(GC_RTEMS_PTHREADS) + || defined(GC_AIX_THREADS) || defined(GC_DARWIN_THREADS) \ + || defined(GC_FREEBSD_THREADS) || defined(GC_NETBSD_THREADS) \ + || defined(GC_RTEMS_PTHREADS) # define USE_PTHREAD_SPECIFIC # elif defined(GC_HPUX_THREADS) # ifdef __GNUC__ -- 2.40.0