diff options
| author | Dave Love | 2000-06-23 17:02:15 +0000 |
|---|---|---|
| committer | Dave Love | 2000-06-23 17:02:15 +0000 |
| commit | 2e83e1e11e88f75a2bef73174064c12e5344b919 (patch) | |
| tree | 018a8131cd9bc068f3ee5054ec3981696924be04 /src | |
| parent | 3347875f82a1ce290a35a92c8a1254fbb7dd8330 (diff) | |
| download | emacs-2e83e1e11e88f75a2bef73174064c12e5344b919.tar.gz emacs-2e83e1e11e88f75a2bef73174064c12e5344b919.zip | |
Move string.h hack here from alpha.h and make it conditional.
(C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
_XOPEN_SOURCE.
(WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
(SOCKLEN_TYPE): Don't define.
Diffstat (limited to 'src')
| -rw-r--r-- | src/s/osf1.h | 35 |
1 files changed, 29 insertions, 6 deletions
diff --git a/src/s/osf1.h b/src/s/osf1.h index 2103a8c50e7..dd4fc372a64 100644 --- a/src/s/osf1.h +++ b/src/s/osf1.h | |||
| @@ -4,12 +4,23 @@ | |||
| 4 | 4 | ||
| 5 | #define OSF1 | 5 | #define OSF1 |
| 6 | 6 | ||
| 7 | /* Define _BSD to tell the include files we're running under | 7 | /* The following used to be done, but -BSD loses when _XOPEN_SOURCE |
| 8 | the BSD universe and not the SYSV universe. */ | 8 | gets defined by configure, at least on OSF5. It's possible this |
| 9 | 9 | will need to be reverted for earlier versions (for which OSF5 isn't | |
| 10 | defined). */ | ||
| 11 | #if 0 | ||
| 10 | #define C_SWITCH_SYSTEM -D_BSD | 12 | #define C_SWITCH_SYSTEM -D_BSD |
| 11 | #define LIBS_SYSTEM -lbsd | 13 | #define LIBS_SYSTEM -lbsd |
| 12 | 14 | ||
| 15 | #else | ||
| 16 | |||
| 17 | #define C_SWITCH_SYSTEM -D_OSF_SOURCE | ||
| 18 | #define WAIT_USE_INT | ||
| 19 | #define SYS_SIGLIST_DECLARED | ||
| 20 | #define sys_siglist __sys_siglist | ||
| 21 | #define NSIG __sys_nsig | ||
| 22 | #endif /* 0 */ | ||
| 23 | |||
| 13 | #define GETPGRP_NO_ARG | 24 | #define GETPGRP_NO_ARG |
| 14 | 25 | ||
| 15 | #define SYSV_SYSTEM_DIR | 26 | #define SYSV_SYSTEM_DIR |
| @@ -26,10 +37,22 @@ | |||
| 26 | 37 | ||
| 27 | #define HAVE_TERMIOS | 38 | #define HAVE_TERMIOS |
| 28 | 39 | ||
| 29 | /* Specify the type that the 3rd arg of `accept' points to. */ | ||
| 30 | #define SOCKLEN_TYPE int | ||
| 31 | |||
| 32 | #ifndef __GNUC__ | 40 | #ifndef __GNUC__ |
| 33 | /* Optimize, inaccurate debugging. */ | 41 | /* Optimize, inaccurate debugging. */ |
| 34 | #define C_DEBUG_SWITCH -g3 | 42 | #define C_DEBUG_SWITCH -g3 |
| 35 | #endif | 43 | #endif |
| 44 | |||
| 45 | #ifndef OSF5 /* fixed in 5.0 */ | ||
| 46 | /* Hack alert! For reasons unknown to mankind the string.h file insists | ||
| 47 | on defining bcopy etc. as taking char pointers as arguments. With | ||
| 48 | Emacs this produces an endless amount of warning which are harmless, | ||
| 49 | but tends to flood the real errors. This hack works around this problem | ||
| 50 | by not prototyping. */ | ||
| 51 | #define bcopy string_h_bcopy | ||
| 52 | #define bzero string_h_bzero | ||
| 53 | #define bcmp string_h_bcmp | ||
| 54 | #include <string.h> | ||
| 55 | #undef bcopy | ||
| 56 | #undef bzero | ||
| 57 | #undef bcmp | ||
| 58 | #endif | ||