Mercurial > hg > xemacs-beta
diff 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 |
line wrap: on
line diff
--- a/src/s/sol2.h Mon Aug 13 09:44:44 2007 +0200 +++ b/src/s/sol2.h Mon Aug 13 09:45:46 2007 +0200 @@ -19,9 +19,11 @@ #define _POSIX_C_SOURCE 199506L #endif #undef _XOPEN_SOURCE +#undef _XOPEN_SOURCE_EXTENDED +#if OS_RELEASE >= 55 #define _XOPEN_SOURCE 1 -#undef _XOPEN_SOURCE_EXTENDED #define _XOPEN_SOURCE_EXTENDED 1 +#endif /* >= SunOS 5.5 */ #endif #if 1 /* mrb */ @@ -98,15 +100,16 @@ #endif /* SunOS 5.5 */ #if OS_RELEASE < 55 -/* Another missing prototype, added in Solaris 2.5 */ +/* Missing prototype, added in Solaris 2.5 */ extern void *__builtin_alloca(size_t); #endif /* before SunOS 5.5 */ #if OS_RELEASE < 56 -/* XEmacs: Solaris include files miss this. */ +/* Missing prototypes, added in Solaris 2.6 */ struct timeval; int utimes (char *file, struct timeval *tvp); -extern int gethostname(char *, unsigned); +int gethostname(char *name, int namelen); +int usleep(unsigned int useconds); #endif /* before SunOS 5.6 */ #include <sys/utsname.h> /* warning: macro redefined: SYS_NMLN */