comparison src/s/sol2.h @ 1692:6265c9c31f53

[xemacs-hg @ 2003-09-18 05:13:54 by youngs] 2003-09-18 Steve Youngs <youngs@xemacs.org> * configure: Re-generate after Martin's configure.in patch. 2003-09-13 Martin Buchholz <martin@xemacs.org> * configure.in (OS_RELEASE): Add support for SunOS 5.10. On current OSes produced by Sun, `uname -r' prints "5.9". It seems likely that on future OSes, `uname -r' will print "5.10". We need to accept multi-digit release numbers. 2003-09-13 Martin Buchholz <martin@xemacs.org> * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
author youngs
date Thu, 18 Sep 2003 05:14:00 +0000
parents abe6d1db359e
children 8fea628c26fb
comparison
equal deleted inserted replaced
1691:0d5689071ed2 1692:6265c9c31f53
9 #ifndef USG5_4 9 #ifndef USG5_4
10 #define USG5_4 10 #define USG5_4
11 #endif 11 #endif
12 12
13 /* Fix understandable GCC lossage on Solaris 2.6 */ 13 /* Fix understandable GCC lossage on Solaris 2.6 */
14 #if defined(__GNUC__) && OS_RELEASE >= 56 && !defined(NOT_C_CODE) 14 #if defined(__GNUC__) && OS_RELEASE >= 506 && !defined(NOT_C_CODE)
15 15
16 /* GCC va_list munging is a little messed up */ 16 /* GCC va_list munging is a little messed up */
17 #define __GNUC_VA_LIST 17 #define __GNUC_VA_LIST
18 #define _VA_LIST_ 18 #define _VA_LIST_
19 #define _VA_LIST va_list 19 #define _VA_LIST va_list
64 block SIGCHLD around the call to grantpt(). This 64 block SIGCHLD around the call to grantpt(). This
65 is *not* in 19.29 and is almost certainly incorrect. 65 is *not* in 19.29 and is almost certainly incorrect.
66 */ 66 */
67 67
68 #undef UNEXEC 68 #undef UNEXEC
69 #if OS_RELEASE < 56 69 #if OS_RELEASE < 506
70 #define UNEXEC "unexsol2.o" 70 #define UNEXEC "unexsol2.o"
71 #else 71 #else
72 #define UNEXEC "unexsol2-6.o" 72 #define UNEXEC "unexsol2-6.o"
73 #endif 73 #endif
74 74
75 #else /* C_CODE */ 75 #else /* C_CODE */
76 76
77 #if OS_RELEASE <= 53 77 #if OS_RELEASE <= 503
78 /* Solaris 2.3 has a bug in XListFontsWithInfo. */ 78 /* Solaris 2.3 has a bug in XListFontsWithInfo. */
79 #define BROKEN_XLISTFONTSWITHINFO 79 #define BROKEN_XLISTFONTSWITHINFO
80 #endif 80 #endif
81 81
82 /* XEmacs addition: Raymond Toy says XEmacs completely misses SIGCHLD 82 /* XEmacs addition: Raymond Toy says XEmacs completely misses SIGCHLD
89 89
90 #ifdef THIS_IS_X11R6 90 #ifdef THIS_IS_X11R6
91 #define BROKEN_SIGCHLD 91 #define BROKEN_SIGCHLD
92 #endif 92 #endif
93 93
94 #if OS_RELEASE < 55 94 #if OS_RELEASE < 505
95 95
96 #if __STDC__ == 1 && defined(__SUNPRO_C) 96 #if __STDC__ == 1 && defined(__SUNPRO_C)
97 #define _POSIX_C_SOURCE 1 97 #define _POSIX_C_SOURCE 1
98 #include <setjmp.h> 98 #include <setjmp.h>
99 #undef _POSIX_C_SOURCE 99 #undef _POSIX_C_SOURCE
101 101
102 /* Missing prototype, added in Solaris 2.5 */ 102 /* Missing prototype, added in Solaris 2.5 */
103 extern void *__builtin_alloca (size_t); 103 extern void *__builtin_alloca (size_t);
104 #endif /* before SunOS 5.5 */ 104 #endif /* before SunOS 5.5 */
105 105
106 #if OS_RELEASE == 55 106 #if OS_RELEASE == 505
107 /* The following functions were added in Solaris 2.5, 107 /* The following functions were added in Solaris 2.5,
108 but they forgot to add prototypes to the system header files. */ 108 but they forgot to add prototypes to the system header files. */
109 int getpagesize (void); 109 int getpagesize (void);
110 long random (void); 110 long random (void);
111 void srandom (unsigned int seed); 111 void srandom (unsigned int seed);
112 int usleep (unsigned int useconds); 112 int usleep (unsigned int useconds);
113 #endif /* SunOS 5.5 */ 113 #endif /* SunOS 5.5 */
114 114
115 /* 2.5 now has `random' back in libc but we don't want to use it. */ 115 /* 2.5 now has `random' back in libc but we don't want to use it. */
116 #if OS_RELEASE >= 55 116 #if OS_RELEASE >= 505
117 #undef HAVE_RANDOM 117 #undef HAVE_RANDOM
118 /* Apparently not necessary here, and it causes 10% CPU chewage. */ 118 /* Apparently not necessary here, and it causes 10% CPU chewage. */
119 #undef BROKEN_SIGCHLD 119 #undef BROKEN_SIGCHLD
120 #endif /* >= SunOS 5.5 */ 120 #endif /* >= SunOS 5.5 */
121 121
122 #if OS_RELEASE < 56 122 #if OS_RELEASE < 506
123 /* Missing prototypes, added in Solaris 2.6 */ 123 /* Missing prototypes, added in Solaris 2.6 */
124 struct timeval; 124 struct timeval;
125 int utimes (char *file, struct timeval *tvp); 125 int utimes (char *file, struct timeval *tvp);
126 int gethostname (char *name, int namelen); 126 int gethostname (char *name, int namelen);
127 #endif /* before SunOS 5.6 */ 127 #endif /* before SunOS 5.6 */