0
|
1 /* Synched up with: FSF 19.31. */
|
|
2
|
74
|
3 #define __EXTENSIONS__
|
0
|
4 #include "usg5-4-2.h" /* XEmacs change from 5-4 to 5-4-2 */
|
|
5
|
|
6 #define SOLARIS2
|
|
7
|
|
8 /* SIGIO seems to be working under Solaris and it makes ^G work better... */
|
|
9 #undef BROKEN_SIGIO
|
|
10
|
|
11 /* eggert@twinsun.com said these work in Solaris.
|
|
12 Perhaps they work in all kinds of SVR4, but this is more conservative. */
|
|
13 #undef BROKEN_TIOCGETC
|
|
14 #undef BROKEN_TIOCGWINSZ
|
|
15
|
|
16 /* This triggers a conditional in xfaces.c. */
|
|
17 #define XOS_NEEDS_TIME_H
|
|
18
|
|
19 #define POSIX
|
|
20
|
|
21 #ifndef NOT_C_CODE
|
|
22 /* The standard Solaris library nsl has this function in it which is
|
|
23 supposed to only be in the BSD compat stuff. Yuck. Of course,
|
|
24 there isn't a prototype for it other than in /usr/ucbinclude. */
|
98
|
25 int gethostname (char *, size_t);
|
151
|
26 /* Another missing prototype, added in Solaris 2.5 */
|
|
27 extern void *__builtin_alloca(size_t);
|
24
|
28
|
74
|
29 /* Get non-ANSI functions from ANSI header files in cc -Xc mode.
|
|
30 Sun has promised to fix setjmp.h */
|
|
31 #if __STDC__ == 1
|
|
32 #ifndef __GNUC__
|
|
33 #define _POSIX_C_SOURCE 1
|
|
34 #include <setjmp.h>
|
|
35 #undef _POSIX_C_SOURCE
|
|
36 #endif /* __GNUC__ */
|
|
37 #endif /* __STDC__ */
|
|
38
|
0
|
39 /* XEmacs: Solaris include files miss this. */
|
|
40 struct timeval;
|
|
41 int utimes (char *file, struct timeval *tvp);
|
|
42
|
|
43 /* XEmacs addition: to this to avoid having problems when we later
|
|
44 define INT_MAX etc. */
|
|
45 #include <limits.h>
|
74
|
46 #endif /* C_CODE */
|
0
|
47
|
151
|
48 /* XEmacs change -- some Motif packages need -lgen to get regex and regcmp */
|
0
|
49
|
|
50 #undef LIBS_SYSTEM
|
149
|
51 #define LIBS_SYSTEM -lsocket -lnsl -lelf -lgen -ldl
|
0
|
52
|
|
53 /* SYSTEM_MALLOC must be defined if dbx/RTC is going to be used. dbx/RTC does
|
|
54 not work with a static definition of malloc(). */
|
|
55 /* We want to be able to test out ralloc.c. */
|
|
56 /* #define SYSTEM_MALLOC */
|
|
57
|
|
58 /* XEmacs: there used to be a special definition of
|
|
59 PTY_TTY_NAME_SPRINTF here that was identical to the
|
|
60 other SYSV R4 definitions except that it didn't
|
|
61 block SIGCHLD around the call to grantpt(). This
|
|
62 is *not* in 19.29 and is almost certainly incorrect.
|
|
63 */
|
|
64
|
|
65 /* XEmacs change from Georg.Nikodym@Canada.Sun.COM. */
|
151
|
66 #ifdef UNEXEC
|
|
67 #undef UNEXEC
|
0
|
68 #endif
|
|
69 #define UNEXEC unexsol2.o
|
|
70
|
|
71 /* XEmacs: Solaris has sigsetjmp but using it leads to core dumps at
|
|
72 least under 2.4 */
|
|
73 #undef _setjmp
|
|
74 #define _setjmp setjmp
|