diff options
| author | Jim Blandy | 1993-05-04 02:44:16 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-05-04 02:44:16 +0000 |
| commit | f80dc88865694fb162f61e8857fe1ef857b493e6 (patch) | |
| tree | 9e49317da6d782d43844bff4d6aede0e42973f87 /src | |
| parent | d82222e114a8fdf1fbe0ca295497186189edd225 (diff) | |
| download | emacs-f80dc88865694fb162f61e8857fe1ef857b493e6.tar.gz emacs-f80dc88865694fb162f61e8857fe1ef857b493e6.zip | |
Changes for Emacs 19 from Thorsten Ohl <ohl@chico.harvard.edu>:
* s/mach2.h: copied from the Emacs 18.59 distribution.
Don't define NO_REMAP, define START_FILES as
`pre-crt0.o' instead. Define LIB_MATH as `-lm', to override the
default `-lm -lc' (there is no libc on the NeXT).
* ymakefile (STARTFILES): Allow config.h to set this value even if
ORDINARY_LINK is defined.
* unexnext.c: Fix subdirectories for the machine dependent include
files for NeXTStep 3.0; #include <mach/mach.h> and
<mach-o/loader.h> instead of <mach.h> and <sys/loader.h>.
(getsectbyname): Remove prototype for this; the system #include
files take care of that.
(malloc_cookie): New variable.
(unexec_doit): Set malloc_cookie to the result returned by
malloc_freezedry.
* emacs.c (main): Declare malloc_cookie to be extern, so that we can
get the value set when we dumped and pass it to malloc_jumpstart.
* systime.h: The NeXT has a timezone function.
Diffstat (limited to 'src')
| -rw-r--r-- | src/unexnext.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/unexnext.c b/src/unexnext.c index 08fe46489a3..d03808bad4f 100644 --- a/src/unexnext.c +++ b/src/unexnext.c | |||
| @@ -1,12 +1,12 @@ | |||
| 1 | /* Dump Emacs in macho format. | 1 | /* Dump Emacs in macho format. |
| 2 | Copyright (C) 1990 Free Software Foundation, Inc. | 2 | Copyright (C) 1990, 1993 Free Software Foundation, Inc. |
| 3 | Written by Bradley Taylor (btaylor@next.com). | 3 | Written by Bradley Taylor (btaylor@next.com). |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
| 7 | GNU Emacs is free software; you can redistribute it and/or modify | 7 | GNU Emacs is free software; you can redistribute it and/or modify |
| 8 | it under the terms of the GNU General Public License as published by | 8 | it under the terms of the GNU General Public License as published by |
| 9 | the Free Software Foundation; either version 1, or (at your option) | 9 | the Free Software Foundation; either version 2, or (at your option) |
| 10 | any later version. | 10 | any later version. |
| 11 | 11 | ||
| 12 | GNU Emacs is distributed in the hope that it will be useful, | 12 | GNU Emacs is distributed in the hope that it will be useful, |
| @@ -24,14 +24,14 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | |||
| 24 | #include <stdio.h> | 24 | #include <stdio.h> |
| 25 | #include <stdlib.h> | 25 | #include <stdlib.h> |
| 26 | #include <stdarg.h> | 26 | #include <stdarg.h> |
| 27 | #include <mach.h> | 27 | #include <mach/mach.h> |
| 28 | #include <sys/loader.h> | 28 | #include <mach-o/loader.h> |
| 29 | #include <sys/file.h> | 29 | #include <sys/file.h> |
| 30 | #include <sys/stat.h> | 30 | #include <sys/stat.h> |
| 31 | #include <libc.h> | 31 | #include <libc.h> |
| 32 | 32 | ||
| 33 | 33 | ||
| 34 | extern struct section *getsectbyname(char *, char *); | 34 | int malloc_cookie; |
| 35 | 35 | ||
| 36 | /* | 36 | /* |
| 37 | * Kludge: we don't expect any program data beyond VM_HIGHDATA | 37 | * Kludge: we don't expect any program data beyond VM_HIGHDATA |
| @@ -258,10 +258,7 @@ unexec_doit( | |||
| 258 | } | 258 | } |
| 259 | 259 | ||
| 260 | 260 | ||
| 261 | { | 261 | malloc_cookie = malloc_freezedry (); |
| 262 | extern int malloc_cookie; | ||
| 263 | malloc_cookie = malloc_freezedry(); | ||
| 264 | } | ||
| 265 | if (!get_data_region(&data_address, &data_size)) { | 262 | if (!get_data_region(&data_address, &data_size)) { |
| 266 | return (0); | 263 | return (0); |
| 267 | } | 264 | } |