summaryrefslogtreecommitdiff
path: root/libgcompat/malloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgcompat/malloc.c')
-rw-r--r--libgcompat/malloc.c6
1 files changed, 6 insertions, 0 deletions
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 <malloc.h> /* memalign */
#include <stdlib.h> /* {m,c,re}alloc, free */
#include <string.h> /* memset */
+#include <unistd.h> /* 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;