aboutsummaryrefslogtreecommitdiffstats
path: root/science/geant4/files/patch-source_global_management_include_tls.hh
blob: 6577fc760161474bcea8ee547d6bf64fb90b7af9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- source/global/management/include/tls.hh.orig	2023-12-10 14:36:39 UTC
+++ source/global/management/include/tls.hh
@@ -39,7 +39,8 @@
 
 #  if defined(G4MULTITHREADED)
 #    if(defined(__MACH__) && defined(__clang__)) ||                            \
-      (defined(__linux__) && defined(__clang__))
+      (defined(__linux__) && defined(__clang__)) ||                            \
+      (defined(__FreeBSD__) && defined(__clang__))
 #      define G4ThreadLocalStatic static thread_local
 #      define G4ThreadLocal thread_local
 #    elif((defined(__linux__) || defined(__MACH__)) &&                         \