diff --git a/src/snmalloc/pal/pal_consts.h b/src/snmalloc/pal/pal_consts.h index 6ea5b36b3..dde946dc7 100644 --- a/src/snmalloc/pal/pal_consts.h +++ b/src/snmalloc/pal/pal_consts.h @@ -21,7 +21,8 @@ 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;