diff --git a/pigz.c b/pigz.c index e79f45f..c59e0d3 100644 --- a/pigz.c +++ b/pigz.c @@ -363,6 +363,17 @@ # include #endif +#ifndef S_IFLNK +# define S_IFLNK 0 +#endif + +#ifdef __MINGW32__ +# define chown(p,o,g) 0 +# define utimes(p,t) 0 +# define lstat(p,s) stat(p,s) +# define _exit(s) exit(s) +#endif + #include "zlib.h" /* deflateInit2(), deflateReset(), deflate(), */ /* deflateEnd(), deflateSetDictionary(), crc32(), adler32(), inflateBackInit(), inflateBack(),