comparison src/s/sol2.h @ 24:4103f0995bd7 r19-15b95

Import from CVS: tag r19-15b95
author cvs
date Mon, 13 Aug 2007 08:51:03 +0200
parents 8fc7fe29b841
children 131b0175ea99
comparison
equal deleted inserted replaced
23:0edd3412f124 24:4103f0995bd7
1 /* Synched up with: FSF 19.31. */ 1 /* Synched up with: FSF 19.31. */
2 2
3 #define __EXTENSIONS__
3 #include "usg5-4-2.h" /* XEmacs change from 5-4 to 5-4-2 */ 4 #include "usg5-4-2.h" /* XEmacs change from 5-4 to 5-4-2 */
4 5
5 #define SOLARIS2 6 #define SOLARIS2
6 7
7 /* SIGIO seems to be working under Solaris and it makes ^G work better... */ 8 /* SIGIO seems to be working under Solaris and it makes ^G work better... */
22 well -- Solaris is just too damn screwy. So we go ahead and let 23 well -- Solaris is just too damn screwy. So we go ahead and let
23 configure have special checks for Solaris. */ 24 configure have special checks for Solaris. */
24 25
25 /* Here is how to find X Windows. The -R option says where 26 /* Here is how to find X Windows. The -R option says where
26 to find X windows at run time. */ 27 to find X windows at run time. */
28 #define LD_SWITCH_SYSTEM_RPATH -R/usr/dt/lib:/opt/SUNWdt/lib:/usr/openwin/lib
27 #ifdef __GNUC__ 29 #ifdef __GNUC__
28 #define LD_SWITCH_SYSTEM -Xlinker -R/usr/openwin/lib 30 #define LD_SWITCH_SYSTEM -Xlinker LD_SWITCH_SYSTEM_RPATH
29 #elif defined (__SUNPRO_C) && (__SUNPRO_C >= 0x400) 31 #else
30 /* XEmacs: <Georg.Nikodym@canada.sun.com> says you need to turn off 32 #define LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_RPATH
31 the incremental linker with Sunpro C 4, or dynodump won't work. */
32 #define LD_SWITCH_SYSTEM -xildoff -R/usr/openwin/lib
33 #else /* not GCC or Sunpro C 4.0 */
34 #define LD_SWITCH_SYSTEM -R/usr/openwin/lib
35 #endif 33 #endif
36 34
37 /* XEmacs change -- Sun CC needs this to default to ANSI */ 35 /* XEmacs change -- Sun CC needs this to default to ANSI */
38 #ifdef __SUNPRO_C 36 #ifdef __SUNPRO_C
39 #define C_SWITCH_SYSTEM -Xa 37 #define C_SWITCH_SYSTEM -Xa
43 /* The standard Solaris library nsl has this function in it which is 41 /* The standard Solaris library nsl has this function in it which is
44 supposed to only be in the BSD compat stuff. Yuck. Of course, 42 supposed to only be in the BSD compat stuff. Yuck. Of course,
45 there isn't a prototype for it other than in /usr/ucbinclude. */ 43 there isn't a prototype for it other than in /usr/ucbinclude. */
46 int gethostname (char *, size_t); 44 int gethostname (char *, size_t);
47 45
46 /* Get non-ANSI functions from ANSI header files in cc -Xc mode.
47 Sun has promised to fix setjmp.h */
48 #if __STDC__ == 1
49 #ifndef __GNUC__
50 #define _POSIX_C_SOURCE 1
51 #include <setjmp.h>
52 #undef _POSIX_C_SOURCE
53 #endif /* __GNUC__ */
54 #endif /* __STDC__ */
55
48 /* XEmacs: Solaris include files miss this. */ 56 /* XEmacs: Solaris include files miss this. */
49 struct timeval; 57 struct timeval;
50 int utimes (char *file, struct timeval *tvp); 58 int utimes (char *file, struct timeval *tvp);
51 59
52 /* XEmacs addition: to this to avoid having problems when we later 60 /* XEmacs addition: to this to avoid having problems when we later
53 define INT_MAX etc. */ 61 define INT_MAX etc. */
54 #include <limits.h> 62 #include <limits.h>
55 #endif 63 #endif /* C_CODE */
56 64
57 /* XEmacs change -- removed flags to force K & R compilation */ 65 /* XEmacs change -- removed flags to force K & R compilation */
58 66
59 /* 67 /*
60 * XEmacs change -- some Motif packages need -lgen to get regex and regcmp 68 * XEmacs change -- some Motif packages need -lgen to get regex and regcmp