HCoop
/
bpt
/
emacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make Emacs work with ibus
[bpt/emacs.git]
/
src
/
unexmacosx.c
diff --git
a/src/unexmacosx.c
b/src/unexmacosx.c
index
8d4e636
..
8cd80a7
100644
(file)
--- a/
src/unexmacosx.c
+++ b/
src/unexmacosx.c
@@
-1,5
+1,5
@@
/* Dump Emacs in Mach-O format for use on Mac OS X.
/* Dump Emacs in Mach-O format for use on Mac OS X.
- Copyright (C) 2001-201
3
Free Software Foundation, Inc.
+ Copyright (C) 2001-201
4
Free Software Foundation, Inc.
This file is part of GNU Emacs.
This file is part of GNU Emacs.
@@
-97,6
+97,7
@@
along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#undef free
#include "unexec.h"
#undef free
#include "unexec.h"
+#include "lisp.h"
#include <stdio.h>
#include <fcntl.h>
#include <stdio.h>
#include <fcntl.h>
@@
-1322,16
+1323,16
@@
unexec (const char *outfile, const char *infile)
unexec_error ("Unexec from a dumped executable is not supported.");
pagesize = getpagesize ();
unexec_error ("Unexec from a dumped executable is not supported.");
pagesize = getpagesize ();
- infd = open (infile, O_RDONLY, 0);
+ infd =
emacs_
open (infile, O_RDONLY, 0);
if (infd < 0)
{
unexec_error ("cannot open input file `%s'", infile);
}
if (infd < 0)
{
unexec_error ("cannot open input file `%s'", infile);
}
- outfd = open (outfile, O_WRONLY | O_TRUNC | O_CREAT, 0755);
+ outfd =
emacs_
open (outfile, O_WRONLY | O_TRUNC | O_CREAT, 0755);
if (outfd < 0)
{
if (outfd < 0)
{
- close (infd);
+
emacs_
close (infd);
unexec_error ("cannot open output file `%s'", outfile);
}
unexec_error ("cannot open output file `%s'", outfile);
}
@@
-1345,7
+1346,7
@@
unexec (const char *outfile, const char *infile)
dump_it ();
dump_it ();
- close (outfd);
+
emacs_
close (outfd);
}
}