1
0
mirror of https://sourceware.org/git/glibc.git synced 2026-01-06 11:51:29 +03:00

Add HAVE_MREMAP for mremap usage

Introduce (only on Linux) and use a HAVE_MREMAP symbol to advertize mremap
availability.

Move the malloc-sysdep.h include from arena.c to malloc.c, since what is
provided by malloc-sysdep.h is needed earlier in malloc.c, before the inclusion
of arena.c.
This commit is contained in:
Pino Toscano
2013-01-17 21:08:12 +01:00
parent d542f8ed21
commit 2a26ef3a01
4 changed files with 13 additions and 11 deletions

View File

@@ -19,9 +19,6 @@
#include <stdbool.h>
/* Get the implementation for check_may_shrink_heap. */
#include <malloc-sysdep.h>
/* Compile-time constants. */
#define HEAP_MIN_SIZE (32*1024)