Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Redefine functions unavailable on MinGW.
  • Loading branch information
madler committed May 30, 2016
1 parent 7f050dd commit c7e0af8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pigz.c
Expand Up @@ -363,6 +363,17 @@
# include <sys/pstat.h>
#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(),
Expand Down

0 comments on commit c7e0af8

Please sign in to comment.