From 670da740ba6a47dd18ceca5b4568aaca87feb7cc Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Thu, 25 May 2023 15:21:48 +0200 Subject: [PATCH] Build: fix OpenBSD error in guardedalloc Pull Request: https://projects.blender.org/blender/blender/pulls/108252 --- intern/guardedalloc/intern/mallocn_intern.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/intern/guardedalloc/intern/mallocn_intern.h b/intern/guardedalloc/intern/mallocn_intern.h index 54acf7d6bd2..8a77a57b390 100644 --- a/intern/guardedalloc/intern/mallocn_intern.h +++ b/intern/guardedalloc/intern/mallocn_intern.h @@ -25,6 +25,8 @@ # define HAVE_MALLOC_STATS #elif defined(__FreeBSD__) # include +#elif defined(__OpenBSD__) +# undef USE_MALLOC_USABLE_SIZE #elif defined(__APPLE__) # include # define malloc_usable_size malloc_size