Mercurial > emacs
comparison src/s/netbsd.h @ 107442:7ada44edb67c
Consolidate redundant definitions in s/bsd-common.h.
* s/bsd-common.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
(LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
(LDAV_SYMBOL, KERNEL_FILE): Define (or undefine) here instead of
doing it in all files that include this one.
* s/gnu.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
(LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
(LDAV_SYMBOL, KERNEL_FILE): Remove.
* s/freebsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
(LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
(LDAV_SYMBOL, KERNEL_FILE): Remove.
* s/netbsd.h (BSD4_2, TABDLY, TAB3, HAVE_TERMIOS, NO_TERMIO)
(LIBS_DEBUG, SYSV_SYSTEM_DIR, UNEXEC, NARROWPROTO, BSD_PGRPS)
(LDAV_SYMBOL, KERNEL_FILE): Remove.
author | Dan Nicolaescu <dann@ics.uci.edu> |
---|---|
date | Sat, 20 Mar 2010 00:57:11 -0700 |
parents | 19fdc244bab9 |
children | 6de06f3dcac9 |
comparison
equal
deleted
inserted
replaced
107441:6c7f53fe0ce5 | 107442:7ada44edb67c |
---|---|
20 | 20 |
21 | 21 |
22 /* Get most of the stuff from bsd-common */ | 22 /* Get most of the stuff from bsd-common */ |
23 #include "bsd-common.h" | 23 #include "bsd-common.h" |
24 | 24 |
25 /* For mem-limits.h. */ | |
26 #define BSD4_2 | |
27 | |
28 #undef KERNEL_FILE | |
29 #undef LDAV_SYMBOL | |
30 #define HAVE_GETLOADAVG 1 | 25 #define HAVE_GETLOADAVG 1 |
31 | 26 |
32 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) | 27 #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) |
33 | 28 |
34 /* netbsd uses OXTABS instead of the expected TAB3. */ | |
35 #define TABDLY OXTABS | |
36 #define TAB3 OXTABS | |
37 | |
38 #define HAVE_TERMIOS | |
39 #define NO_TERMIO | |
40 | |
41 #define LIBS_DEBUG | |
42 /* -lutil is not needed for NetBSD >0.9. */ | 29 /* -lutil is not needed for NetBSD >0.9. */ |
43 /* #define LIBS_SYSTEM -lutil */ | 30 /* #define LIBS_SYSTEM -lutil */ |
44 #define LIBS_TERMCAP -ltermcap | 31 #define LIBS_TERMCAP -ltermcap |
45 | 32 |
46 #define NEED_ERRNO | 33 #define NEED_ERRNO |
47 #define SYSV_SYSTEM_DIR | |
48 | |
49 /* Netbsd has POSIX-style pgrp behavior. */ | |
50 #undef BSD_PGRPS | |
51 | 34 |
52 #define START_FILES pre-crt0.o /usr/lib/crt0.o START_FILES_1 /usr/lib/crtbegin.o | 35 #define START_FILES pre-crt0.o /usr/lib/crt0.o START_FILES_1 /usr/lib/crtbegin.o |
53 #define UNEXEC unexelf.o | |
54 #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o END_FILES_1 | 36 #define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtend.o END_FILES_1 |
55 #undef LIB_GCC | 37 #undef LIB_GCC |
56 #define LIB_GCC | 38 #define LIB_GCC |
57 | 39 |
58 #ifdef HAVE_CRTIN | 40 #ifdef HAVE_CRTIN |
90 for libc and friends. Using -nostartfiles instead avoids | 72 for libc and friends. Using -nostartfiles instead avoids |
91 this problem, and will also work on earlier NetBSD releases */ | 73 this problem, and will also work on earlier NetBSD releases */ |
92 | 74 |
93 #define LINKER $(CC) -nostartfiles | 75 #define LINKER $(CC) -nostartfiles |
94 | 76 |
95 #define NARROWPROTO 1 | |
96 | |
97 #define DEFAULT_SOUND_DEVICE "/dev/audio" | 77 #define DEFAULT_SOUND_DEVICE "/dev/audio" |
98 | 78 |
99 /* Greg A. Woods <woods@weird.com> says we must include signal.h | 79 /* Greg A. Woods <woods@weird.com> says we must include signal.h |
100 before syssignal.h is included, to work around interface conflicts | 80 before syssignal.h is included, to work around interface conflicts |
101 that are handled with CPP __RENAME() macro in signal.h. */ | 81 that are handled with CPP __RENAME() macro in signal.h. */ |