From c9f8eb168eaecd267e86bafc598a0c1155304b90 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Thu, 1 Feb 2018 16:30:18 -0600 Subject: malloc: add __sbrk --- libgcompat/malloc.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libgcompat') diff --git a/libgcompat/malloc.c b/libgcompat/malloc.c index 14fbf66..e0b5851 100644 --- a/libgcompat/malloc.c +++ b/libgcompat/malloc.c @@ -27,6 +27,7 @@ #include /* memalign */ #include /* {m,c,re}alloc, free */ #include /* memset */ +#include /* sbrk */ #include "alias.h" /* alias */ @@ -73,6 +74,11 @@ void *__libc_realloc(void *ptr, size_t size) } alias(__libc_realloc, __realloc); +void *__sbrk(intptr_t increment) +{ + return sbrk(increment); +} + struct mallinfo mallinfo(void) { struct mallinfo info; -- cgit v1.2.3-70-g09d2