summaryrefslogtreecommitdiff
path: root/src/emacs.c
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@raeburn.org>2017-03-08 06:28:45 -0500
committerKen Raeburn <raeburn@raeburn.org>2017-04-06 02:10:29 -0400
commitd15719d36e8fab262e7803d9409326321b890941 (patch)
treebb050b66a1aedbc3effb494b58c30a2930346cdf /src/emacs.c
parent04a5ce0b65fcc8f49c26b74b30b37322b559a0d5 (diff)
downloademacs-d15719d36e8fab262e7803d9409326321b890941.tar.gz
Fix CANNOT_DUMP build on Darwin/macOS.
* src/conf_post.h (malloc, realloc, free) [DARWIN_OS && emacs && CANNOT_DUMP]: Don't define as unexec_malloc, etc. * src/emacs.c (main): Don't call unexec_init_emacs_zone.
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emacs.c b/src/emacs.c
index 1868961090d..2b01a37f5ab 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -137,7 +137,7 @@ static
bool might_dump;
#endif
-#ifdef DARWIN_OS
+#if defined DARWIN_OS && !defined CANNOT_DUMP
extern void unexec_init_emacs_zone (void);
#endif
@@ -742,7 +742,7 @@ main (int argc, char **argv)
#endif
/* If using unexmacosx.c (set by s/darwin.h), we must do this. */
-#ifdef DARWIN_OS
+#if defined DARWIN_OS && !defined CANNOT_DUMP
if (!initialized)
unexec_init_emacs_zone ();
#endif