summaryrefslogtreecommitdiff
path: root/include/mimalloc-internal.h
diff options
context:
space:
mode:
authorCarlo Marcelo Arenas Belón <carenas@gmail.com>2019-09-01 01:06:01 -0700
committerCarlo Marcelo Arenas Belón <carenas@gmail.com>2019-09-01 01:06:01 -0700
commit0e35ec3879f885c8f5b72e96232d2d76bca93c8b (patch)
treeb8c89253beb3e52b95832538a880da4a74f54e0f /include/mimalloc-internal.h
parentafaf4924cbe02e386111e2a9d8ce209d0b0341d3 (diff)
avoid deadlock with OpenBSD
Diffstat (limited to 'include/mimalloc-internal.h')
-rw-r--r--include/mimalloc-internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mimalloc-internal.h b/include/mimalloc-internal.h
index 2625187..df04c1b 100644
--- a/include/mimalloc-internal.h
+++ b/include/mimalloc-internal.h
@@ -10,7 +10,7 @@ terms of the MIT license. A copy of the license can be found in the file
#include "mimalloc-types.h"
-#if defined(MI_MALLOC_OVERRIDE) && defined(__APPLE__)
+#if defined(MI_MALLOC_OVERRIDE) && (defined(__APPLE__) || defined(__OpenBSD__))
#define MI_TLS_RECURSE_GUARD
#endif