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
|
157
|
21 #ifdef NOT_C_CODE
|
0
|
22
|
151
|
23 /* XEmacs change -- some Motif packages need -lgen to get regex and regcmp */
|
0
|
24
|
|
25 #undef LIBS_SYSTEM
|
157
|
26 #define LIBS_SYSTEM "-lsocket -lnsl -lelf -lgen -ldl"
|
0
|
27
|
|
28 /* SYSTEM_MALLOC must be defined if dbx/RTC is going to be used. dbx/RTC does
|
|
29 not work with a static definition of malloc(). */
|
|
30 /* We want to be able to test out ralloc.c. */
|
|
31 /* #define SYSTEM_MALLOC */
|
|
32
|
|
33 /* XEmacs: there used to be a special definition of
|
|
34 PTY_TTY_NAME_SPRINTF here that was identical to the
|
|
35 other SYSV R4 definitions except that it didn't
|
|
36 block SIGCHLD around the call to grantpt(). This
|
|
37 is *not* in 19.29 and is almost certainly incorrect.
|
|
38 */
|
|
39
|
151
|
40 #undef UNEXEC
|
157
|
41 #define UNEXEC "unexsol2.o"
|
|
42
|
|
43 #else /* C_CODE */
|
|
44 /* The standard Solaris library nsl has this function in it which is
|
|
45 supposed to only be in the BSD compat stuff. Yuck. Of course,
|
|
46 there isn't a prototype for it other than in /usr/ucbinclude. */
|
|
47 int gethostname (char *, size_t);
|
|
48 /* Another missing prototype, added in Solaris 2.5 */
|
|
49 extern void *__builtin_alloca(size_t);
|
|
50
|
|
51 /* XEmacs: Solaris include files miss this. */
|
|
52 struct timeval;
|
|
53 int utimes (char *file, struct timeval *tvp);
|
|
54
|
|
55 /* Get non-ANSI functions from ANSI header files in cc -Xc mode.
|
|
56 Sun has promised to fix setjmp.h */
|
|
57 #if __STDC__ == 1 && defined(__SUNPRO_C)
|
|
58 #define _POSIX_C_SOURCE 1
|
|
59 #include <setjmp.h>
|
|
60 #undef _POSIX_C_SOURCE
|
|
61 #endif /* cc -Xc */
|
0
|
62
|
|
63 /* XEmacs: Solaris has sigsetjmp but using it leads to core dumps at
|
|
64 least under 2.4 */
|
|
65 #undef _setjmp
|
|
66 #define _setjmp setjmp
|
157
|
67 #endif /* C_CODE */
|