X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmalloc%2Fexpand_heap.c;h=e6a3d7a000ebfc556d4863794ee1dd417e7f3cc8;hb=0847902ab99065a48f9bd3729b6e676288dfd69e;hp=d8c0be742b69f1739ad54b9d3df56849a983ef2b;hpb=e3bc22f1eff87b8f029a6ab31f1a269d69e4b053;p=musl diff --git a/src/malloc/expand_heap.c b/src/malloc/expand_heap.c index d8c0be74..e6a3d7a0 100644 --- a/src/malloc/expand_heap.c +++ b/src/malloc/expand_heap.c @@ -4,6 +4,7 @@ #include #include "libc.h" #include "syscall.h" +#include "malloc_impl.h" /* This function returns true if the interval [old,new] * intersects the 'len'-sized interval below &libc.auxv @@ -27,8 +28,6 @@ static int traverses_stack_p(uintptr_t old, uintptr_t new) return 0; } -void *__mmap(void *, size_t, int, int, int, off_t); - /* Expand the heap in-place if brk can be used, or otherwise via mmap, * using an exponential lower bound on growth by mmap to make * fragmentation asymptotically irrelevant. The size argument is both