aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/alloc.c b/src/alloc.c
index a58dc13cbd7..90c6f9441fa 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -97,7 +97,7 @@ static bool valgrind_p;
97#include "w32heap.h" /* for sbrk */ 97#include "w32heap.h" /* for sbrk */
98#endif 98#endif
99 99
100#if defined DOUG_LEA_MALLOC || defined GNU_LINUX 100#ifdef GNU_LINUX
101/* The address where the heap starts. */ 101/* The address where the heap starts. */
102void * 102void *
103my_heap_start (void) 103my_heap_start (void)
@@ -130,7 +130,9 @@ malloc_initialize_hook (void)
130 130
131 if (! initialized) 131 if (! initialized)
132 { 132 {
133#ifdef GNU_LINUX
133 my_heap_start (); 134 my_heap_start ();
135#endif
134 malloc_using_checking = getenv ("MALLOC_CHECK_") != NULL; 136 malloc_using_checking = getenv ("MALLOC_CHECK_") != NULL;
135 } 137 }
136 else 138 else
@@ -7053,7 +7055,7 @@ We divide the value by 1024 to make sure it fits in a Lisp integer. */)
7053{ 7055{
7054 Lisp_Object end; 7056 Lisp_Object end;
7055 7057
7056#ifdef HAVE_NS 7058#if defined HAVE_NS || !HAVE_SBRK
7057 /* Avoid warning. sbrk has no relation to memory allocated anyway. */ 7059 /* Avoid warning. sbrk has no relation to memory allocated anyway. */
7058 XSETINT (end, 0); 7060 XSETINT (end, 0);
7059#else 7061#else