diff options
| author | Dan Nicolaescu | 2010-03-20 00:57:11 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-03-20 00:57:11 -0700 |
| commit | 05a670e6d3593a9e68804447dee5596fb7ca5ed4 (patch) | |
| tree | 59e4b3d3822a20827b163fed8e9e9403d36bf6bc /src/s/gnu.h | |
| parent | 2968f56146eac37708de08f30a58d662ce5f037f (diff) | |
| download | emacs-05a670e6d3593a9e68804447dee5596fb7ca5ed4.tar.gz emacs-05a670e6d3593a9e68804447dee5596fb7ca5ed4.zip | |
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.
Diffstat (limited to 'src/s/gnu.h')
| -rw-r--r-- | src/s/gnu.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/s/gnu.h b/src/s/gnu.h index b43cd65c40a..bf68cabe051 100644 --- a/src/s/gnu.h +++ b/src/s/gnu.h | |||
| @@ -21,27 +21,13 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 21 | /* Get most of the stuff from bsd-common */ | 21 | /* Get most of the stuff from bsd-common */ |
| 22 | #include "bsd-common.h" | 22 | #include "bsd-common.h" |
| 23 | 23 | ||
| 24 | /* For mem-limits.h. */ | ||
| 25 | #define BSD4_2 | ||
| 26 | |||
| 27 | #undef SYSTEM_TYPE | 24 | #undef SYSTEM_TYPE |
| 28 | #define SYSTEM_TYPE "gnu" | 25 | #define SYSTEM_TYPE "gnu" |
| 29 | 26 | ||
| 30 | #undef NLIST_STRUCT | 27 | #undef NLIST_STRUCT |
| 31 | #undef KERNEL_FILE | ||
| 32 | #undef LDAV_SYMBOL | ||
| 33 | 28 | ||
| 34 | #define SIGNALS_VIA_CHARACTERS | 29 | #define SIGNALS_VIA_CHARACTERS |
| 35 | 30 | ||
| 36 | #define HAVE_TERMIOS | ||
| 37 | #define NO_TERMIO | ||
| 38 | |||
| 39 | #define LIBS_DEBUG | ||
| 40 | |||
| 41 | /* XXX emacs should not expect TAB3 to be defined. */ | ||
| 42 | #define TABDLY OXTABS | ||
| 43 | #define TAB3 OXTABS | ||
| 44 | |||
| 45 | /* Tell Emacs that we are a terminfo based system; disable the use | 31 | /* Tell Emacs that we are a terminfo based system; disable the use |
| 46 | of local termcap. (GNU uses ncurses.) */ | 32 | of local termcap. (GNU uses ncurses.) */ |
| 47 | #ifdef HAVE_LIBNCURSES | 33 | #ifdef HAVE_LIBNCURSES |
| @@ -49,11 +35,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 49 | #define LIBS_TERMCAP -lncurses | 35 | #define LIBS_TERMCAP -lncurses |
| 50 | #endif | 36 | #endif |
| 51 | 37 | ||
| 52 | #define SYSV_SYSTEM_DIR | ||
| 53 | |||
| 54 | /* GNU has POSIX-style pgrp behavior. */ | ||
| 55 | #undef BSD_PGRPS | ||
| 56 | |||
| 57 | /* Use mmap directly for allocating larger buffers. */ | 38 | /* Use mmap directly for allocating larger buffers. */ |
| 58 | #ifdef DOUG_LEA_MALLOC | 39 | #ifdef DOUG_LEA_MALLOC |
| 59 | #undef REL_ALLOC | 40 | #undef REL_ALLOC |
| @@ -63,17 +44,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 63 | #define ORDINARY_LINK | 44 | #define ORDINARY_LINK |
| 64 | #define DATA_START ({ extern int data_start; (char *) &data_start; }) | 45 | #define DATA_START ({ extern int data_start; (char *) &data_start; }) |
| 65 | 46 | ||
| 66 | /* GNU now always uses the ELF format. */ | ||
| 67 | #define UNEXEC unexelf.o | ||
| 68 | |||
| 69 | /* Some losing code fails to include this and then assumes | 47 | /* Some losing code fails to include this and then assumes |
| 70 | that because it is braindead that O_RDONLY==0. */ | 48 | that because it is braindead that O_RDONLY==0. */ |
| 71 | #ifndef NOT_C_CODE | 49 | #ifndef NOT_C_CODE |
| 72 | #include <fcntl.h> | 50 | #include <fcntl.h> |
| 73 | #endif | 51 | #endif |
| 74 | 52 | ||
| 75 | #define NARROWPROTO 1 | ||
| 76 | |||
| 77 | #ifdef emacs | 53 | #ifdef emacs |
| 78 | #include <stdio.h> /* Get the definition of _IO_STDIO_H. */ | 54 | #include <stdio.h> /* Get the definition of _IO_STDIO_H. */ |
| 79 | #if defined(_IO_STDIO_H) || defined(_STDIO_USES_IOSTREAM) | 55 | #if defined(_IO_STDIO_H) || defined(_STDIO_USES_IOSTREAM) |