changeset 1587:34d970f3ff23

Added 64bit stat and alloca functionality when building with Watcom.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 28 Jan 2012 22:59:12 +0000
parents 021d2966f84d
children 623a42cf06f4
files compat.h
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/compat.h	Fri Jan 27 20:59:59 2012 +0000
+++ b/compat.h	Sat Jan 28 22:59:12 2012 +0000
@@ -38,6 +38,19 @@
 #undef DIRSEP
 #endif
 
+#ifdef __WATCOMC__
+#include <alloca.h>
+#include <sys/select.h>
+#include <sys/stat.h>
+#  ifdef _stati64
+#    ifdef stat
+#    undef stat
+#    endif
+#  define stat(a, b) _stati64(a, b)
+#  define dwstat _stati64
+#  endif
+#endif
+
 #if defined(__EMX__) || defined(__OS2__) || defined(__WIN32__) || defined(WINNT)
 #include <io.h>
 #include <process.h>