aboutsummaryrefslogtreecommitdiffstats
path: root/src/emacs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/emacs.c b/src/emacs.c
index ab60df39e27..356f74204bf 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -1621,16 +1621,14 @@ main (argc, argv
1621 keys_of_minibuf (); 1621 keys_of_minibuf ();
1622 keys_of_window (); 1622 keys_of_window ();
1623 } 1623 }
1624 else 1624 else
1625 { 1625 {
1626 /* 1626 /* Initialization that must be done even if the global variable
1627 Initialization that must be done even if the global variable 1627 initialized is non zero. */
1628 initialized is non zero
1629 */
1630#ifdef HAVE_NTGUI 1628#ifdef HAVE_NTGUI
1631 globals_of_w32fns (); 1629 globals_of_w32fns ();
1632 globals_of_w32menu (); 1630 globals_of_w32menu ();
1633#endif /* end #ifdef HAVE_NTGUI */ 1631#endif /* HAVE_NTGUI */
1634 } 1632 }
1635 1633
1636 init_process (); /* init_display uses add_keyboard_wait_descriptor. */ 1634 init_process (); /* init_display uses add_keyboard_wait_descriptor. */
@@ -2180,16 +2178,19 @@ You must run Emacs in batch mode in order to dump it. */)
2180 if (! noninteractive) 2178 if (! noninteractive)
2181 error ("Dumping Emacs works only in batch mode"); 2179 error ("Dumping Emacs works only in batch mode");
2182 2180
2181#ifdef __linux__
2183 if (heap_bss_diff > MAX_HEAP_BSS_DIFF) 2182 if (heap_bss_diff > MAX_HEAP_BSS_DIFF)
2184 { 2183 {
2185 fprintf (stderr, "**************************************************\n"); 2184 fprintf (stderr, "**************************************************\n");
2186 fprintf (stderr, "Warning: Your system has a gap between BSS and the\n"); 2185 fprintf (stderr, "Warning: Your system has a gap between BSS and the\n");
2187 fprintf (stderr, "heap. This usually means that exec-shield or\n"); 2186 fprintf (stderr, "heap (%lu byte). This usually means that exec-shield\n",
2188 fprintf (stderr, "something similar is in effect. The dump may fail\n"); 2187 heap_bss_diff);
2189 fprintf (stderr, "because of this. See the section about exec-shield\n"); 2188 fprintf (stderr, "or something similar is in effect. The dump may\n");
2190 fprintf (stderr, "in etc/PROBLEMS for more information.\n"); 2189 fprintf (stderr, "fail because of this. See the section about \n");
2190 fprintf (stderr, "exec-shield in etc/PROBLEMS for more information.\n");
2191 fprintf (stderr, "**************************************************\n"); 2191 fprintf (stderr, "**************************************************\n");
2192 } 2192 }
2193#endif /* __linux__ */
2193 2194
2194 /* Bind `command-line-processed' to nil before dumping, 2195 /* Bind `command-line-processed' to nil before dumping,
2195 so that the dumped Emacs will process its command line 2196 so that the dumped Emacs will process its command line
@@ -2278,7 +2279,7 @@ synchronize_locale (category, plocale, desired_locale)
2278 { 2279 {
2279 *plocale = desired_locale; 2280 *plocale = desired_locale;
2280 setlocale (category, (STRINGP (desired_locale) 2281 setlocale (category, (STRINGP (desired_locale)
2281 ? (char *)(SDATA (desired_locale)) 2282 ? (char *) SDATA (desired_locale)
2282 : "")); 2283 : ""));
2283 } 2284 }
2284} 2285}