From 3c7cdb498b03ccd45f0b6f5af41d74019eb72cc2 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Fri, 4 Dec 2020 09:17:06 +0000 Subject: [PATCH] profile, enable TLS for a handful of BSD platforms. --- src/LinearMath/btQuickprof.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/LinearMath/btQuickprof.cpp b/src/LinearMath/btQuickprof.cpp index 86fd1d781..33b51eb76 100644 --- a/src/LinearMath/btQuickprof.cpp +++ b/src/LinearMath/btQuickprof.cpp @@ -720,6 +720,9 @@ void btLeaveProfileZoneDefault() #define BT_HAVE_TLS 1 #elif __linux__ #define BT_HAVE_TLS 1 +#elif defined(__FreeBSD__) || defined(__NetBSD__) + // TODO: At the moment disabling purposely OpenBSD, albeit tls support exists but not fully functioning + #define BT_HAVE_TLS 1 #endif // __thread is broken on Andorid clang until r12b. See