comparison src/s/osf1.h @ 29963:45af78901143

(C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change (moved to osf5-0.h). [!NOT_C_CODE]: Protect string.h stuff.
author Dave Love <fx@gnu.org>
date Tue, 27 Jun 2000 16:24:16 +0000
parents f8892a11c005
children 24cfc6cd2142
comparison
equal deleted inserted replaced
29962:cb2595f03c92 29963:45af78901143
2 2
3 /* Identify OSF1 for the m- files. */ 3 /* Identify OSF1 for the m- files. */
4 4
5 #define OSF1 5 #define OSF1
6 6
7 /* The following used to be done, but -BSD loses when _XOPEN_SOURCE
8 gets defined by configure, at least on OSF5. It's possible this
9 will need to be reverted for earlier versions (for which OSF5 isn't
10 defined). */
11 #if 0
12 #define C_SWITCH_SYSTEM -D_BSD 7 #define C_SWITCH_SYSTEM -D_BSD
13 #define LIBS_SYSTEM -lbsd 8 #define LIBS_SYSTEM -lbsd
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 9
24 #define GETPGRP_NO_ARG 10 #define GETPGRP_NO_ARG
25 11
26 #define SYSV_SYSTEM_DIR 12 #define SYSV_SYSTEM_DIR
27 13
40 #ifndef __GNUC__ 26 #ifndef __GNUC__
41 /* Optimize, inaccurate debugging. */ 27 /* Optimize, inaccurate debugging. */
42 #define C_DEBUG_SWITCH -g3 28 #define C_DEBUG_SWITCH -g3
43 #endif 29 #endif
44 30
31 #ifndef NOT_C_CODE
45 #ifndef OSF5 /* fixed in 5.0 */ 32 #ifndef OSF5 /* fixed in 5.0 */
46 /* Hack alert! For reasons unknown to mankind the string.h file insists 33 /* Hack alert! For reasons unknown to mankind the string.h file insists
47 on defining bcopy etc. as taking char pointers as arguments. With 34 on defining bcopy etc. as taking char pointers as arguments. With
48 Emacs this produces an endless amount of warning which are harmless, 35 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 36 but tends to flood the real errors. This hack works around this problem
54 #include <string.h> 41 #include <string.h>
55 #undef bcopy 42 #undef bcopy
56 #undef bzero 43 #undef bzero
57 #undef bcmp 44 #undef bcmp
58 #endif 45 #endif
46 #endif