comparison src/s/sol2.h @ 167:85ec50267440 r20-3b10

Import from CVS: tag r20-3b10
author cvs
date Mon, 13 Aug 2007 09:45:46 +0200
parents 0132846995bd
children 15872534500d
comparison
equal deleted inserted replaced
166:7a77eb660975 167:85ec50267440
17 #undef _POSIX_C_SOURCE 17 #undef _POSIX_C_SOURCE
18 #if 0 18 #if 0
19 #define _POSIX_C_SOURCE 199506L 19 #define _POSIX_C_SOURCE 199506L
20 #endif 20 #endif
21 #undef _XOPEN_SOURCE 21 #undef _XOPEN_SOURCE
22 #undef _XOPEN_SOURCE_EXTENDED
23 #if OS_RELEASE >= 55
22 #define _XOPEN_SOURCE 1 24 #define _XOPEN_SOURCE 1
23 #undef _XOPEN_SOURCE_EXTENDED
24 #define _XOPEN_SOURCE_EXTENDED 1 25 #define _XOPEN_SOURCE_EXTENDED 1
26 #endif /* >= SunOS 5.5 */
25 #endif 27 #endif
26 28
27 #if 1 /* mrb */ 29 #if 1 /* mrb */
28 #include "usg5-4-2.h" /* XEmacs change from 5-4 to 5-4-2 */ 30 #include "usg5-4-2.h" /* XEmacs change from 5-4 to 5-4-2 */
29 #endif 31 #endif
96 long random (void); 98 long random (void);
97 void srandom (unsigned int seed); 99 void srandom (unsigned int seed);
98 #endif /* SunOS 5.5 */ 100 #endif /* SunOS 5.5 */
99 101
100 #if OS_RELEASE < 55 102 #if OS_RELEASE < 55
101 /* Another missing prototype, added in Solaris 2.5 */ 103 /* Missing prototype, added in Solaris 2.5 */
102 extern void *__builtin_alloca(size_t); 104 extern void *__builtin_alloca(size_t);
103 #endif /* before SunOS 5.5 */ 105 #endif /* before SunOS 5.5 */
104 106
105 #if OS_RELEASE < 56 107 #if OS_RELEASE < 56
106 /* XEmacs: Solaris include files miss this. */ 108 /* Missing prototypes, added in Solaris 2.6 */
107 struct timeval; 109 struct timeval;
108 int utimes (char *file, struct timeval *tvp); 110 int utimes (char *file, struct timeval *tvp);
109 extern int gethostname(char *, unsigned); 111 int gethostname(char *name, int namelen);
112 int usleep(unsigned int useconds);
110 #endif /* before SunOS 5.6 */ 113 #endif /* before SunOS 5.6 */
111 114
112 #include <sys/utsname.h> /* warning: macro redefined: SYS_NMLN */ 115 #include <sys/utsname.h> /* warning: macro redefined: SYS_NMLN */
113 116
114 /* Get non-ANSI functions from ANSI header files in cc -Xc mode. 117 /* Get non-ANSI functions from ANSI header files in cc -Xc mode.