From 73db7c42041dc32206fad57da86779133961b30c Mon Sep 17 00:00:00 2001 From: David Carlier Date: Mon, 13 Feb 2023 12:26:27 +0000 Subject: [PATCH] Disable PAL access enforcing on netbsd --- src/snmalloc/pal/pal_consts.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snmalloc/pal/pal_consts.h b/src/snmalloc/pal/pal_consts.h index 6ea5b36b3..3d2ba1f6d 100644 --- a/src/snmalloc/pal/pal_consts.h +++ b/src/snmalloc/pal/pal_consts.h @@ -21,7 +21,7 @@ namespace snmalloc * read/write, for added excitement). For the moment, just force this down on * CHERI. */ -#if defined(SNMALLOC_CHECK_CLIENT) && !defined(__CHERI_PURE_CAPABILITY__) +#if defined(SNMALLOC_CHECK_CLIENT) && !defined(__CHERI_PURE_CAPABILITY__) && !defined(__NetBSD__) static constexpr bool PalEnforceAccess = true; #else static constexpr bool PalEnforceAccess = false;