aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2012-07-30 21:38:04 -0400
committerGlenn Morris2012-07-30 21:38:04 -0400
commit6a3818523e869b548797cc855cfc4abe8dc7f69c (patch)
tree3659beff082921b797a13c368b3e571957614af1 /src
parentc1529dedfc3df43bfa794c69076da9fff05808a5 (diff)
downloademacs-6a3818523e869b548797cc855cfc4abe8dc7f69c.tar.gz
emacs-6a3818523e869b548797cc855cfc4abe8dc7f69c.zip
Remove src/s/darwin.h
* configure.ac (opsysfile): Set to empty on darwin. * src/conf_post.h [DARWIN_OS]: Move remaining contents of src/s/darwin.h here. * src/s/darwin.h: Remove file.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/conf_post.h16
-rw-r--r--src/s/darwin.h34
3 files changed, 19 insertions, 34 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index baf73fb870c..300894a6617 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12012-07-31 Glenn Morris <rgm@gnu.org> 12012-07-31 Glenn Morris <rgm@gnu.org>
2 2
3 * conf_post.h [DARWIN_OS]: Move remaining contents of s/darwin.h here.
4 * s/darwin.h: Remove file.
5
3 * conf_post.h [HPUX]: Move random, srandom here from s/hpux10-20.h. 6 * conf_post.h [HPUX]: Move random, srandom here from s/hpux10-20.h.
4 * s/hpux10-20.h: Remove file, which is now empty. 7 * s/hpux10-20.h: Remove file, which is now empty.
5 8
diff --git a/src/conf_post.h b/src/conf_post.h
index d81763b1a73..98f51f22fef 100644
--- a/src/conf_post.h
+++ b/src/conf_post.h
@@ -51,6 +51,22 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
51#endif 51#endif
52#endif 52#endif
53 53
54#ifdef DARWIN_OS
55#ifdef emacs
56#define malloc unexec_malloc
57#define realloc unexec_realloc
58#define free unexec_free
59/* Don't use posix_memalign because it is not compatible with unexmacosx.c. */
60#undef HAVE_POSIX_MEMALIGN
61#endif
62/* The following solves the problem that Emacs hangs when evaluating
63 (make-comint "test0" "/nodir/nofile" nil "") when /nodir/nofile
64 does not exist. Also, setsid is not allowed in the vfork child's
65 context as of Darwin 9/Mac OS X 10.5. */
66#undef HAVE_WORKING_VFORK
67#define vfork fork
68#endif /* DARWIN_OS */
69
54/* We have to go this route, rather than the old hpux9 approach of 70/* We have to go this route, rather than the old hpux9 approach of
55 renaming the functions via macros. The system's stdlib.h has fully 71 renaming the functions via macros. The system's stdlib.h has fully
56 prototyped declarations, which yields a conflicting definition of 72 prototyped declarations, which yields a conflicting definition of
diff --git a/src/s/darwin.h b/src/s/darwin.h
deleted file mode 100644
index 20d576e4986..00000000000
--- a/src/s/darwin.h
+++ /dev/null
@@ -1,34 +0,0 @@
1/* System description header file for Darwin (Mac OS X).
2
3Copyright (C) 2001-2012 Free Software Foundation, Inc.
4
5This file is part of GNU Emacs.
6
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
9the Free Software Foundation, either version 3 of the License, or
10(at your option) any later version.
11
12GNU Emacs is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
19
20/* Definitions for how to compile & link. */
21#ifdef emacs
22#define malloc unexec_malloc
23#define realloc unexec_realloc
24#define free unexec_free
25/* Don't use posix_memalign because it is not compatible with unexmacosx.c. */
26#undef HAVE_POSIX_MEMALIGN
27#endif
28
29/* The following solves the problem that Emacs hangs when evaluating
30 (make-comint "test0" "/nodir/nofile" nil "") when /nodir/nofile
31 does not exist. Also, setsid is not allowed in the vfork child's
32 context as of Darwin 9/Mac OS X 10.5. */
33#undef HAVE_WORKING_VFORK
34#define vfork fork