summaryrefslogtreecommitdiff
path: root/Xos.h
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-06-14 09:33:16 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-06-15 08:09:36 -0700
commit5aaec3c7a583354a07ec765327fd0edd6216981f (patch)
treeec16c230c0b075c5f4ea6aa67387d51f7dd59f69 /Xos.h
parent5bad478221c54c0dbf682ef2569f6ca5ac050049 (diff)
downloadxorg-proto-x11proto-5aaec3c7a583354a07ec765327fd0edd6216981f.tar.gz
Drop support for SunOS 4 and Solaris releases older than 2.5 (1995)
Includes changing remaining sun ifdef's to check for standard-conformant / non-namespace-polluting #ifdef __sun instead of older #ifdef sun. Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'Xos.h')
-rw-r--r--Xos.h19
1 files changed, 2 insertions, 17 deletions
diff --git a/Xos.h b/Xos.h
index a07e5e2..e16f473 100644
--- a/Xos.h
+++ b/Xos.h
@@ -67,12 +67,9 @@ in this Software without prior written authorization from The Open Group.
*/
# include <string.h>
-# if defined(__SCO__) || defined(__UNIXWARE__)
+# if defined(__SCO__) || defined(__UNIXWARE__) || defined(__sun)
# include <strings.h>
# else
-# if (defined(sun) && defined(__SVR4))
-# include <strings.h>
-# endif
# ifndef index
# define index(s,c) (strchr((s),(c)))
# endif
@@ -82,18 +79,6 @@ in this Software without prior written authorization from The Open Group.
# endif
/*
- * strerror()
- */
-# if (defined(sun) && !defined(SVR4)) && !defined(__GLIBC__)
-# ifndef strerror
-extern char *sys_errlist[];
-extern int sys_nerr;
-# define strerror(n) \
- (((n) >= 0 && (n) < sys_nerr) ? sys_errlist[n] : "unknown error")
-# endif
-# endif
-
-/*
* Get open(2) constants
*/
# if defined(X_NOT_POSIX)
@@ -170,7 +155,7 @@ struct timeval {
# if defined(_XOPEN_XPG4) || defined(_XOPEN_UNIX) /* _XOPEN_UNIX is XPG4.2 */
# define X_GETTIMEOFDAY(t) gettimeofday(t, (struct timezone*)0)
# else
-# if defined(SVR4) || defined(WIN32)
+# if defined(SVR4) || defined(__SVR4) || defined(WIN32)
# define X_GETTIMEOFDAY(t) gettimeofday(t)
# else
# define X_GETTIMEOFDAY(t) gettimeofday(t, (struct timezone*)0)