aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/emacs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emacs.c b/src/emacs.c
index ac9b6495337..48df53390b3 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -161,7 +161,7 @@ bool display_arg;
161 Tells GC how to save a copy of the stack. */ 161 Tells GC how to save a copy of the stack. */
162char *stack_bottom; 162char *stack_bottom;
163 163
164#ifdef GNU_LINUX 164#if defined GNU_LINUX && !defined CANNOT_DUMP
165/* The gap between BSS end and heap start as far as we can tell. */ 165/* The gap between BSS end and heap start as far as we can tell. */
166static uprintmax_t heap_bss_diff; 166static uprintmax_t heap_bss_diff;
167#endif 167#endif
@@ -716,14 +716,14 @@ main (int argc, char **argv)
716 716
717#ifndef CANNOT_DUMP 717#ifndef CANNOT_DUMP
718 might_dump = !initialized; 718 might_dump = !initialized;
719#endif
720 719
721#ifdef GNU_LINUX 720# ifdef GNU_LINUX
722 if (!initialized) 721 if (!initialized)
723 { 722 {
724 char *heap_start = my_heap_start (); 723 char *heap_start = my_heap_start ();
725 heap_bss_diff = heap_start - max (my_endbss, my_endbss_static); 724 heap_bss_diff = heap_start - max (my_endbss, my_endbss_static);
726 } 725 }
726# endif
727#endif 727#endif
728 728
729#if defined WINDOWSNT || defined HAVE_NTGUI 729#if defined WINDOWSNT || defined HAVE_NTGUI
@@ -2126,7 +2126,7 @@ You must run Emacs in batch mode in order to dump it. */)
2126 if (!might_dump) 2126 if (!might_dump)
2127 error ("Emacs can be dumped only once"); 2127 error ("Emacs can be dumped only once");
2128 2128
2129#ifdef GNU_LINUX 2129#if defined GNU_LINUX && !defined CANNOT_DUMP
2130 2130
2131 /* Warn if the gap between BSS end and heap start is larger than this. */ 2131 /* Warn if the gap between BSS end and heap start is larger than this. */
2132# define MAX_HEAP_BSS_DIFF (1024*1024) 2132# define MAX_HEAP_BSS_DIFF (1024*1024)