1 --- newlib/libc/stdlib/mallocr.c.old Sun Nov 23 18:41:21 2003
2 +++ newlib/libc/stdlib/mallocr.c Sun Nov 23 18:43:03 2003
4 #define SEPARATE_OBJECTS
6 #define MORECORE(size) _sbrk_r(reent_ptr, (size))
7 -#define MORECORE_CLEARS 0
8 +#define MORECORE_CLEARS 1
9 +#define malloc_getpagesize getpagesize()
10 #define MALLOC_LOCK __malloc_lock(reent_ptr)
11 #define MALLOC_UNLOCK __malloc_unlock(reent_ptr)
18 +#if !defined(_WIN32) && !defined(malloc_getpagesize)
20 #define malloc_getpagesize (128)