diff options
Diffstat (limited to 'Utilities/cmtar/libtar.c')
-rw-r--r-- | Utilities/cmtar/libtar.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Utilities/cmtar/libtar.c b/Utilities/cmtar/libtar.c index 9131512..fdeccf2 100644 --- a/Utilities/cmtar/libtar.c +++ b/Utilities/cmtar/libtar.c @@ -75,6 +75,13 @@ struct gzStruct gzFile* GZFile; }; struct gzStruct GZStruct; +#if defined ( _MSC_VER) || defined(__WATCOMC__) +#include <io.h> +//Yogi: hack. this should work on windows where there is no O_ACCMODE defined +#ifndef O_ACCMODE +# define O_ACCMODE 0x0003 +#endif +#endif int libtar_gzopen(void* call_data, const char *pathname, int oflags, mode_t mode) { |