]> code.delx.au - gnu-emacs/blob - src/s/netbsd.h
merge trunk
[gnu-emacs] / src / s / netbsd.h
1 /* s/ file for netbsd system.
2
3 Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
4 2010 Free Software Foundation, Inc.
5
6 This file is part of GNU Emacs.
7
8 GNU Emacs is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
12
13 GNU Emacs is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
20
21
22 /* Get most of the stuff from bsd-common. */
23 #include "bsd-common.h"
24
25 #define HAVE_GETLOADAVG 1
26
27 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base)
28
29 /* On post 1.3 releases of NetBSD, gcc -nostdlib also clears
30 the library search parth, i.e. it won't search /usr/lib
31 for libc and friends. Using -nostartfiles instead avoids
32 this problem, and will also work on earlier NetBSD releases. */
33 #define LINKER $(CC) -nostartfiles
34
35 #define DEFAULT_SOUND_DEVICE "/dev/audio"
36
37 /* Greg A. Woods <woods@weird.com> says we must include signal.h
38 before syssignal.h is included, to work around interface conflicts
39 that are handled with CPP __RENAME() macro in signal.h. */
40 #ifndef NOT_C_CODE
41 #include <signal.h>
42 #endif
43
44 /* Don't close pty in process.c to make it as controlling terminal.
45 It is already a controlling terminal of subprocess, because we did
46 ioctl TIOCSCTTY. */
47 #define DONT_REOPEN_PTY
48
49 /* Tell that garbage collector that setjmp is known to save all
50 registers relevant for conservative garbage collection in the jmp_buf. */
51 #define GC_SETJMP_WORKS 1
52
53 /* Use the GC_MAKE_GCPROS_NOOPS (see lisp.h) method. */
54 #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS
55
56 /* arch-tag: e80f364a-04e9-4faf-93cb-f36a0fe95c81
57 (do not change this comment) */