commit a3eb950423cfdf11f48080652089dfd39465cb02 (tree)
parent 41502c6aa53a3da31b276c23c4db74db7d04796b
Author: David Carlier <devnexen@gmail.com>
Date: Fri, 26 May 2023 12:05:19 +0000
std.c: haiku also supports malloc_usable_size to benefit zig's heap
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/std/c/haiku.zig b/lib/std/c/haiku.zig
@@ -1071,3 +1071,5 @@ pub const sigevent = extern struct {
/// TODO refines if necessary
pub const PTHREAD_STACK_MIN = 2 * 4096;
+
+pub extern "c" fn malloc_usable_size(?*anyopaque) usize;