From 16c3f1292c419eb928b7a9b8c0b9f3dc6733ba56 Mon Sep 17 00:00:00 2001 From: Daan Date: Sat, 2 Mar 2024 16:57:10 -0800 Subject: [PATCH] Fix compile error on OpenBSD #773, by @sundb --- src/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/init.c b/src/init.c index fe885a5b..fda17d70 100644 --- a/src/init.c +++ b/src/init.c @@ -425,7 +425,7 @@ void _mi_heap_set_default_direct(mi_heap_t* heap) { #if defined(MI_TLS_SLOT) mi_prim_tls_slot_set(MI_TLS_SLOT,heap); #elif defined(MI_TLS_PTHREAD_SLOT_OFS) - *mi_tls_pthread_heap_slot() = heap; + *mi_prim_tls_pthread_heap_slot() = heap; #elif defined(MI_TLS_PTHREAD) // we use _mi_heap_default_key #else