diff options
Diffstat (limited to 'src/alloc.c')
| -rw-r--r-- | src/alloc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/alloc.c b/src/alloc.c index 617148e85e5..039b7285e39 100644 --- a/src/alloc.c +++ b/src/alloc.c | |||
| @@ -59,6 +59,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 59 | #include "dosfns.h" /* For dos_memory_info. */ | 59 | #include "dosfns.h" /* For dos_memory_info. */ |
| 60 | #endif | 60 | #endif |
| 61 | 61 | ||
| 62 | #ifdef HAVE_MALLOC_H | ||
| 63 | # include <malloc.h> | ||
| 64 | #endif | ||
| 65 | |||
| 62 | #if (defined ENABLE_CHECKING \ | 66 | #if (defined ENABLE_CHECKING \ |
| 63 | && defined HAVE_VALGRIND_VALGRIND_H \ | 67 | && defined HAVE_VALGRIND_VALGRIND_H \ |
| 64 | && !defined USE_VALGRIND) | 68 | && !defined USE_VALGRIND) |
| @@ -107,8 +111,6 @@ my_heap_start (void) | |||
| 107 | 111 | ||
| 108 | #ifdef DOUG_LEA_MALLOC | 112 | #ifdef DOUG_LEA_MALLOC |
| 109 | 113 | ||
| 110 | #include <malloc.h> | ||
| 111 | |||
| 112 | /* Specify maximum number of areas to mmap. It would be nice to use a | 114 | /* Specify maximum number of areas to mmap. It would be nice to use a |
| 113 | value that explicitly means "no limit". */ | 115 | value that explicitly means "no limit". */ |
| 114 | 116 | ||