emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master d15719d 1/4: Fix CANNOT_DUMP build on Darwin/macOS.


From: Ken Raeburn
Subject: [Emacs-diffs] master d15719d 1/4: Fix CANNOT_DUMP build on Darwin/macOS.
Date: Thu, 6 Apr 2017 02:12:36 -0400 (EDT)

branch: master
commit d15719d36e8fab262e7803d9409326321b890941
Author: Ken Raeburn <address@hidden>
Commit: Ken Raeburn <address@hidden>

    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.
---
 src/conf_post.h | 2 +-
 src/emacs.c     | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/conf_post.h b/src/conf_post.h
index e146b9b..30c948e 100644
--- a/src/conf_post.h
+++ b/src/conf_post.h
@@ -94,7 +94,7 @@ typedef bool bool_bf;
 #endif
 
 #ifdef DARWIN_OS
-#ifdef emacs
+#if defined emacs && !defined CANNOT_DUMP
 #define malloc unexec_malloc
 #define realloc unexec_realloc
 #define free unexec_free
diff --git a/src/emacs.c b/src/emacs.c
index 1868961..2b01a37 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]