$NetBSD: patch-intern_guardedalloc_intern_mallocn__intern.h,v 1.2 2024/02/11 15:29:59 ryoon Exp $ Support NetBSD. --- intern/guardedalloc/intern/mallocn_intern.h.orig 2019-07-24 07:41:39.000000000 +0000 +++ intern/guardedalloc/intern/mallocn_intern.h @@ -55,6 +55,8 @@ #elif defined(__HAIKU__) # include size_t malloc_usable_size(void *ptr); +#elif defined(__NetBSD__) +# define malloc_usable_size(p) (0) #else # pragma message "We don't know how to use malloc_usable_size on your platform" # undef USE_MALLOC_USABLE_SIZE