0
|
1 /* Synched up with: FSF 19.31. */
|
|
2
|
163
|
3 #define __EXTENSIONS__ 1
|
|
4 #define SOLARIS2 1
|
|
5 #define POSIX 1
|
|
6 #if 1
|
|
7 #ifndef USG
|
|
8 #define USG
|
|
9 #endif
|
|
10 #ifndef USG5_4
|
|
11 #define USG5_4
|
|
12 #endif
|
|
13 #if 0
|
|
14 #undef SYSTEM_TYPE
|
|
15 #define SYSTEM_TYPE "solaris"
|
|
16 #endif
|
|
17 #undef _POSIX_C_SOURCE
|
|
18 #if 0
|
|
19 #define _POSIX_C_SOURCE 199506L
|
|
20 #endif
|
|
21 #undef _XOPEN_SOURCE
|
|
22 #define _XOPEN_SOURCE 1
|
|
23 #undef _XOPEN_SOURCE_EXTENDED
|
|
24 #define _XOPEN_SOURCE_EXTENDED 1
|
|
25 #endif
|
0
|
26
|
163
|
27 #if 1 /* mrb */
|
|
28 #include "usg5-4-2.h" /* XEmacs change from 5-4 to 5-4-2 */
|
|
29 #endif
|
0
|
30
|
|
31 /* SIGIO seems to be working under Solaris and it makes ^G work better... */
|
|
32 #undef BROKEN_SIGIO
|
|
33
|
|
34 /* eggert@twinsun.com said these work in Solaris.
|
|
35 Perhaps they work in all kinds of SVR4, but this is more conservative. */
|
|
36 #undef BROKEN_TIOCGETC
|
|
37 #undef BROKEN_TIOCGWINSZ
|
|
38
|
157
|
39 #ifdef NOT_C_CODE
|
163
|
40 #define ORDINARY_LINK
|
151
|
41 /* XEmacs change -- some Motif packages need -lgen to get regex and regcmp */
|
0
|
42
|
|
43 #undef LIBS_SYSTEM
|
157
|
44 #define LIBS_SYSTEM "-lsocket -lnsl -lelf -lgen -ldl"
|
0
|
45
|
|
46 /* SYSTEM_MALLOC must be defined if dbx/RTC is going to be used. dbx/RTC does
|
|
47 not work with a static definition of malloc(). */
|
|
48 /* We want to be able to test out ralloc.c. */
|
|
49 /* #define SYSTEM_MALLOC */
|
|
50
|
|
51 /* XEmacs: there used to be a special definition of
|
|
52 PTY_TTY_NAME_SPRINTF here that was identical to the
|
|
53 other SYSV R4 definitions except that it didn't
|
|
54 block SIGCHLD around the call to grantpt(). This
|
|
55 is *not* in 19.29 and is almost certainly incorrect.
|
|
56 */
|
|
57
|
151
|
58 #undef UNEXEC
|
163
|
59 #if OS_RELEASE < 56
|
157
|
60 #define UNEXEC "unexsol2.o"
|
163
|
61 #else
|
|
62 #define UNEXEC "unexsol2-6.o"
|
|
63 #endif
|
157
|
64
|
|
65 #else /* C_CODE */
|
163
|
66
|
|
67 #if OS_RELEASE <= 53
|
|
68 /* Solaris 2.3 has a bug in XListFontsWithInfo. */
|
|
69 #define BROKEN_XLISTFONTSWITHINFO
|
|
70 #endif
|
|
71
|
|
72 /* 2.5 now has random back in libc but we don't want to use it. */
|
|
73 #if OS_RELEASE >= 55
|
|
74 #undef HAVE_RANDOM
|
|
75 /* Apparently not necessary here, and it causes 10% CPU chewage. */
|
|
76 #undef BROKEN_SIGCHLD
|
|
77 #endif /* >= SunOS 5.5 */
|
|
78
|
|
79 /* XEmacs addition: Raymond Toy says XEmacs completely misses SIGCHLD
|
|
80 when compiled with GCC 2.7.0 (but not, apparently, with SunPro C?),
|
|
81 X11R6, and Solaris 2.4.
|
|
82
|
|
83 Someone else submitted a simple test program that duplicates this
|
|
84 behavior, and says it has something to do with the fact that X11R6
|
|
85 links with the threads library. */
|
|
86
|
|
87 #ifdef THIS_IS_X11R6
|
|
88 #define BROKEN_SIGCHLD
|
|
89 #endif
|
|
90
|
|
91 #if OS_RELEASE == 55
|
|
92 /* Solaris 2.5 is the first Solaris that has getpagesize(), srandom()
|
|
93 and random(), but they forgot to add prototypes to the header
|
|
94 files. */
|
|
95 int getpagesize (void);
|
|
96 long random (void);
|
|
97 void srandom (unsigned int seed);
|
|
98 #endif /* SunOS 5.5 */
|
|
99
|
|
100 #if OS_RELEASE < 55
|
157
|
101 /* Another missing prototype, added in Solaris 2.5 */
|
|
102 extern void *__builtin_alloca(size_t);
|
163
|
103 #endif /* before SunOS 5.5 */
|
157
|
104
|
163
|
105 #if OS_RELEASE < 56
|
157
|
106 /* XEmacs: Solaris include files miss this. */
|
|
107 struct timeval;
|
|
108 int utimes (char *file, struct timeval *tvp);
|
163
|
109 extern int gethostname(char *, unsigned);
|
|
110 #endif /* before SunOS 5.6 */
|
|
111
|
|
112 #include <sys/utsname.h> /* warning: macro redefined: SYS_NMLN */
|
157
|
113
|
|
114 /* Get non-ANSI functions from ANSI header files in cc -Xc mode.
|
|
115 Sun has promised to fix setjmp.h */
|
|
116 #if __STDC__ == 1 && defined(__SUNPRO_C)
|
|
117 #define _POSIX_C_SOURCE 1
|
|
118 #include <setjmp.h>
|
|
119 #undef _POSIX_C_SOURCE
|
|
120 #endif /* cc -Xc */
|
0
|
121
|
|
122 /* XEmacs: Solaris has sigsetjmp but using it leads to core dumps at
|
|
123 least under 2.4 */
|
|
124 #undef _setjmp
|
|
125 #define _setjmp setjmp
|
163
|
126
|
157
|
127 #endif /* C_CODE */
|