summaryrefslogtreecommitdiff
path: root/Xosdefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'Xosdefs.h')
-rw-r--r--Xosdefs.h21
1 files changed, 14 insertions, 7 deletions
diff --git a/Xosdefs.h b/Xosdefs.h
index c192068..075d798 100644
--- a/Xosdefs.h
+++ b/Xosdefs.h
@@ -81,18 +81,16 @@ in this Software without prior written authorization from The Open Group.
#endif
#ifdef _SCO_DS
-#ifndef SCO
-#define SCO
-#endif
-#ifndef SCO325
-#define SCO325
+#ifndef __SCO__
+#define __SCO__
#endif
#endif
#ifdef i386
#ifdef SYSV
-#if !defined(ISC) && !defined(SCO) && !defined(_SEQUENT_) && !defined(sun)
-#if !defined(_POSIX_SOURCE) && !defined(_SCO_DS)
+#if !defined(ISC) && !defined(__SCO__) && !defined(_SEQUENT_) && \
+ !defined(__UNIXWARE__) && !defined(sun)
+#if !defined(_POSIX_SOURCE)
#define X_NOT_POSIX
#endif
#define X_NOT_STDC_ENV
@@ -148,6 +146,15 @@ in this Software without prior written authorization from The Open Group.
#endif
#endif
+#if defined(__SCO__) || defined(__UNIXWARE__)
+# ifndef PATH_MAX
+# define PATH_MAX 1024
+# endif
+# ifndef MAXPATHLEN
+# define MAXPATHLEN 1024
+# endif
+#endif
+
#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) \
|| defined(__Darwin__) || defined(__DragonFly__)
# ifndef CSRG_BASED