(main) [DOUG_LEA_MALLOC]: Call r_alloc_reinit when restarting a dumped Emacs.
{
malloc_set_state (malloc_state_ptr);
free (malloc_state_ptr);
+ r_alloc_reinit ();
}
#endif
#endif /* LINK_CRTL_SHARE */
#endif /* VMS */
-#ifdef HAVE_SETRLIMIT
+#if defined (HAVE_SETRLIMIT) && defined (RLIMIT_STACK)
/* Extend the stack space available. */
if (!getrlimit (RLIMIT_STACK, &rlim))
{
setrlimit (RLIMIT_STACK, &rlim);
}
-#endif
+#endif /* HAVE_SETRLIMIT and RLIMIT_STACK */
/* Record (approximately) where the stack begins. */
stack_bottom = &stack_bottom_variable;