diff options
| author | Ken Raeburn | 2017-03-08 06:28:45 -0500 |
|---|---|---|
| committer | Ken Raeburn | 2017-04-06 02:10:29 -0400 |
| commit | d15719d36e8fab262e7803d9409326321b890941 (patch) | |
| tree | bb050b66a1aedbc3effb494b58c30a2930346cdf /src | |
| parent | 04a5ce0b65fcc8f49c26b74b30b37322b559a0d5 (diff) | |
| download | emacs-d15719d36e8fab262e7803d9409326321b890941.tar.gz emacs-d15719d36e8fab262e7803d9409326321b890941.zip | |
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')
| -rw-r--r-- | src/conf_post.h | 2 | ||||
| -rw-r--r-- | src/emacs.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/conf_post.h b/src/conf_post.h index e146b9bbe8a..30c948e39af 100644 --- a/src/conf_post.h +++ b/src/conf_post.h | |||
| @@ -94,7 +94,7 @@ typedef bool bool_bf; | |||
| 94 | #endif | 94 | #endif |
| 95 | 95 | ||
| 96 | #ifdef DARWIN_OS | 96 | #ifdef DARWIN_OS |
| 97 | #ifdef emacs | 97 | #if defined emacs && !defined CANNOT_DUMP |
| 98 | #define malloc unexec_malloc | 98 | #define malloc unexec_malloc |
| 99 | #define realloc unexec_realloc | 99 | #define realloc unexec_realloc |
| 100 | #define free unexec_free | 100 | #define free unexec_free |
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 | |||
| 137 | bool might_dump; | 137 | bool might_dump; |
| 138 | #endif | 138 | #endif |
| 139 | 139 | ||
| 140 | #ifdef DARWIN_OS | 140 | #if defined DARWIN_OS && !defined CANNOT_DUMP |
| 141 | extern void unexec_init_emacs_zone (void); | 141 | extern void unexec_init_emacs_zone (void); |
| 142 | #endif | 142 | #endif |
| 143 | 143 | ||
| @@ -742,7 +742,7 @@ main (int argc, char **argv) | |||
| 742 | #endif | 742 | #endif |
| 743 | 743 | ||
| 744 | /* If using unexmacosx.c (set by s/darwin.h), we must do this. */ | 744 | /* If using unexmacosx.c (set by s/darwin.h), we must do this. */ |
| 745 | #ifdef DARWIN_OS | 745 | #if defined DARWIN_OS && !defined CANNOT_DUMP |
| 746 | if (!initialized) | 746 | if (!initialized) |
| 747 | unexec_init_emacs_zone (); | 747 | unexec_init_emacs_zone (); |
| 748 | #endif | 748 | #endif |