$OpenBSD: patch-quickjs_c,v 1.2 2020/09/23 15:37:32 bcallah Exp $

Index: quickjs.c
--- quickjs.c.orig
+++ quickjs.c
@@ -1667,7 +1667,7 @@ static inline size_t js_def_malloc_usable_size(void *p
     return malloc_usable_size(ptr);
 #else
     /* change this to `return 0;` if compilation fails */
-    return malloc_usable_size(ptr);
+    return 0; // return malloc_usable_size(ptr);
 #endif
 }
 
@@ -1741,7 +1741,7 @@ static const JSMallocFunctions def_malloc_funcs = {
     (size_t (*)(const void *))malloc_usable_size,
 #else
     /* change this to `NULL,` if compilation fails */
-    malloc_usable_size,
+    NULL, // malloc_usable_size,
 #endif
 };
 
