ports/lang/quickjs/patches/patch-quickjs_c

22 lines
590 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
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
};