darwin.h 1.74 KB
Newer Older
1
/* System description header file for Darwin (Mac OS X).
Glenn Morris's avatar
Glenn Morris committed
2

3
Copyright (C) 2001-2012  Free Software Foundation, Inc.
4 5 6

This file is part of GNU Emacs.

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
9 10
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
11 12 13 14 15 16 17

GNU Emacs is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
18
along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
19 20


21 22
/* Define symbols to identify the version of Unix this is.
   Define all the symbols that apply correctly.  */
23 24 25 26
#define BSD4_2
/* BSD4_3 and BSD4_4 are already defined in sys/param.h */
#define BSD_SYSTEM

27 28 29
/* More specific than the above two.  We cannot use __APPLE__ as this
   may not be defined on non-OSX Darwin, and we cannot define DARWIN
   here because Panther and lower CoreFoundation.h uses DARWIN to
30
   distinguish OS X from pure Darwin.  */
31 32
#define DARWIN_OS

33
/* Definitions for how to compile & link.  */
34
#ifdef emacs
35 36 37
#define malloc unexec_malloc
#define realloc unexec_realloc
#define free unexec_free
38
/* Don't use posix_memalign because it is not compatible with unexmacosx.c.  */
39
#undef HAVE_POSIX_MEMALIGN
40 41
#endif

42 43
/* The following solves the problem that Emacs hangs when evaluating
   (make-comint "test0" "/nodir/nofile" nil "") when /nodir/nofile
44 45
   does not exist.  Also, setsid is not allowed in the vfork child's
   context as of Darwin 9/Mac OS X 10.5.  */
46 47
#undef HAVE_WORKING_VFORK
#define vfork fork