fixed up Makefile to make emacs happy, updated download locations
[nestedvm.git] / upstream / patches / newlib-malloc.patch
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
3 @@ -301,7 +301,8 @@
4  #define SEPARATE_OBJECTS
5  #define HAVE_MMAP 0
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)
12  
13 @@ -310,7 +311,7 @@
14  # undef WIN32
15  #endif
16  
17 -#ifndef _WIN32
18 +#if !defined(_WIN32) && !defined(malloc_getpagesize)
19  #ifdef SMALL_MEMORY
20  #define malloc_getpagesize (128)
21  #else