comparison compat.h @ 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 0576c5444587
children 9a21fbd6ae50
comparison
equal deleted inserted replaced
1586:021d2966f84d 1587:34d970f3ff23
34 #endif /* HAVE_NDIR_H */ 34 #endif /* HAVE_NDIR_H */
35 #endif /* HAVE_DIRENT_H */ 35 #endif /* HAVE_DIRENT_H */
36 36
37 #ifdef DIRSEP 37 #ifdef DIRSEP
38 #undef DIRSEP 38 #undef DIRSEP
39 #endif
40
41 #ifdef __WATCOMC__
42 #include <alloca.h>
43 #include <sys/select.h>
44 #include <sys/stat.h>
45 # ifdef _stati64
46 # ifdef stat
47 # undef stat
48 # endif
49 # define stat(a, b) _stati64(a, b)
50 # define dwstat _stati64
51 # endif
39 #endif 52 #endif
40 53
41 #if defined(__EMX__) || defined(__OS2__) || defined(__WIN32__) || defined(WINNT) 54 #if defined(__EMX__) || defined(__OS2__) || defined(__WIN32__) || defined(WINNT)
42 #include <io.h> 55 #include <io.h>
43 #include <process.h> 56 #include <process.h>