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