457
|
1 #include "bsd4-2.h"
|
|
2
|
8757
|
3 #ifndef SUNOS4
|
|
4 #define SUNOS4
|
|
5 #endif
|
|
6
|
457
|
7 #if 0 /* This may have been needed for an earlier version of Sun OS 4.
|
|
8 It seems to cause warnings in 4.0.3 and 4.1. */
|
|
9 #define O_NDELAY FNDELAY /* Non-blocking I/O (4.2 style) */
|
|
10 #endif
|
|
11
|
7140
|
12 /* We use the Sun syntax -Bstatic unconditionally, because even when we
|
|
13 use GCC, these are passed through to the linker, not handled by GCC
|
|
14 directly. */
|
18569
|
15 #define LD_SWITCH_SYSTEM -Bstatic
|
|
16
|
|
17 /* We use this for linking temacs, but not for other programs
|
|
18 or for tests in configure. */
|
|
19 #define LD_SWITCH_SYSTEM_TEMACS -e __start
|
457
|
20
|
|
21 /* In SunOS 4.1, a static function called by tzsetwall reportedly
|
|
22 clears the byte just past an eight byte region it mallocs, corrupting
|
|
23 GNU malloc's memory pool. But Sun's malloc doesn't seem to mind. */
|
|
24
|
|
25 #define SYSTEM_MALLOC
|
5681
|
26
|
26528
|
27 /* SunOS 4.x cc <stdlib.h> declares abort and free to return int. */
|
|
28
|
|
29 #ifndef __STDC__
|
|
30 #define ABORT_RETURN_TYPE int
|
|
31 #define FREE_RETURN_TYPE int
|
|
32 #endif
|
|
33
|
5681
|
34 #ifdef __GNUC__
|
|
35 /* We must define mkdir with this arg prototype
|
|
36 to match GCC's fixed stat.h. */
|
|
37 #define MKDIR_PROTOTYPE \
|
|
38 int mkdir (const char *dpath, unsigned short dmode)
|
|
39 #endif /* __GNUC__ */
|
30426
|
40
|
|
41 /* Must use the system's termcap, if we use any termcap.
|
|
42 It does special things. */
|
|
43
|
|
44 #ifndef TERMINFO
|
|
45 #define LIBS_TERMCAP -ltermcap
|
|
46 #endif
|
49356
|
47
|
|
48 #define GC_SETJMP_WORKS 1
|
|
49 #define GC_MARK_STACK GC_MAKE_GCPROS_NOOPS
|
52401
|
50
|
|
51 /* arch-tag: 362f3bfc-810d-4f6e-9b83-5a32f8f1a926
|
|
52 (do not change this comment) */
|