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);
|
24
|
26
|
74
|
27 /* Get non-ANSI functions from ANSI header files in cc -Xc mode.
|
|
28 Sun has promised to fix setjmp.h */
|
|
29 #if __STDC__ == 1
|
|
30 #ifndef __GNUC__
|
|
31 #define _POSIX_C_SOURCE 1
|
|
32 #include <setjmp.h>
|
|
33 #undef _POSIX_C_SOURCE
|
|
34 #endif /* __GNUC__ */
|
|
35 #endif /* __STDC__ */
|
|
36
|
0
|
37 /* XEmacs: Solaris include files miss this. */
|
|
38 struct timeval;
|
|
39 int utimes (char *file, struct timeval *tvp);
|
|
40
|
|
41 /* XEmacs addition: to this to avoid having problems when we later
|
|
42 define INT_MAX etc. */
|
|
43 #include <limits.h>
|
74
|
44 #endif /* C_CODE */
|
0
|
45
|
|
46 /* XEmacs change -- removed flags to force K & R compilation */
|
|
47
|
|
48 /*
|
|
49 * XEmacs change -- some Motif packages need -lgen to get regex and regcmp
|
|
50 */
|
|
51
|
|
52 #undef LIBS_SYSTEM
|
149
|
53 #define LIBS_SYSTEM -lsocket -lnsl -lelf -lgen -ldl
|
0
|
54
|
|
55 /* XEmacs change -- Mark Borges says this is needed. */
|
|
56 #define LIBS_TERMCAP -ltermlib
|
|
57
|
|
58 /* #### XEmacs change: until we've gotten the Energize builds converted
|
|
59 over to use configure instead of ymakefile, we still need this.
|
|
60 */
|
|
61 #if defined (NOT_C_CODE) && defined (ENERGIZE)
|
|
62
|
|
63 # define LIBS_DEBUG
|
|
64 # undef LIBS_SYSTEM
|
149
|
65 # define LIBS_SYSTEM -lsocket -lnsl -lelf -lgen -ldl
|
0
|
66 # define START_FILES
|
|
67 # define LD_CMD $(CC)
|
|
68
|
|
69 #endif
|
|
70
|
|
71 /* SYSTEM_MALLOC must be defined if dbx/RTC is going to be used. dbx/RTC does
|
|
72 not work with a static definition of malloc(). */
|
|
73 /* We want to be able to test out ralloc.c. */
|
|
74 /* #define SYSTEM_MALLOC */
|
|
75
|
|
76 /* XEmacs: there used to be a special definition of
|
|
77 PTY_TTY_NAME_SPRINTF here that was identical to the
|
|
78 other SYSV R4 definitions except that it didn't
|
|
79 block SIGCHLD around the call to grantpt(). This
|
|
80 is *not* in 19.29 and is almost certainly incorrect.
|
|
81 */
|
|
82
|
|
83 /* XEmacs change from Georg.Nikodym@Canada.Sun.COM. */
|
|
84 #ifdef UNEXEC
|
|
85 #undef UNEXEC
|
|
86 #endif
|
|
87 #define UNEXEC unexsol2.o
|
|
88
|
|
89 /* XEmacs: Solaris has sigsetjmp but using it leads to core dumps at
|
|
90 least under 2.4 */
|
|
91 #undef _setjmp
|
|
92 #define _setjmp setjmp
|