aboutsummaryrefslogtreecommitdiff
path: root/src/common/sysdefs.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2011-08-09 21:16:44 +0300
committerLasse Collin <lasse.collin@tukaani.org>2011-08-09 21:16:44 +0300
commit5b1e1f10741af9e4bbe4cfc3261fb7c7b04f7809 (patch)
tree4764afdbf8284abf1bc439bc780ef972bc49ec42 /src/common/sysdefs.h
parentRun the scripts with the correct shell in test_scripts.sh. (diff)
downloadxz-5b1e1f10741af9e4bbe4cfc3261fb7c7b04f7809.tar.xz
Workaround unusual SIZE_MAX on SCO OpenServer.
Diffstat (limited to '')
-rw-r--r--src/common/sysdefs.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/common/sysdefs.h b/src/common/sysdefs.h
index 69370ba4..5ea6bdae 100644
--- a/src/common/sysdefs.h
+++ b/src/common/sysdefs.h
@@ -103,9 +103,12 @@
# define UINT64_MAX UINT64_C(18446744073709551615)
#endif
-// Interix has broken header files, which typedef size_t to unsigned long,
-// but a few lines later define SIZE_MAX to INT32_MAX.
-#ifdef __INTERIX
+// Incorrect(?) SIZE_MAX:
+// - Interix headers typedef size_t to unsigned long,
+// but a few lines later define SIZE_MAX to INT32_MAX.
+// - SCO OpenServer (x86) headers typedef size_t to unsigned int
+// but define SIZE_MAX to INT32_MAX.
+#if defined(__INTERIX) || defined(_SCO_DS)
# undef SIZE_MAX
#endif