aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/unexnext.c15
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
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
6 6
7GNU Emacs is free software; you can redistribute it and/or modify 7GNU Emacs is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by 8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 1, or (at your option) 9the Free Software Foundation; either version 2, or (at your option)
10any later version. 10any later version.
11 11
12GNU Emacs is distributed in the hope that it will be useful, 12GNU 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
34extern struct section *getsectbyname(char *, char *); 34int 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 }