]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Keep windows specific headers
authorTopher Lubaway <asimplechris@gmail.com>
Tue, 12 Jun 2018 17:16:27 +0000 (10:16 -0700)
committerTopher Lubaway <asimplechris@gmail.com>
Tue, 12 Jun 2018 17:16:27 +0000 (10:16 -0700)
Accidentially deleted this existing windows only header

programs/fileio.c

index d33c7f423cbc665210cf429e93aeb7f08bf70b64..7ec4114be645490afeae3167e77683e4f10c87b9 100644 (file)
@@ -61,6 +61,7 @@
 #if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(_WIN32) ||     \
     defined(__CYGWIN__)
 #include <io.h> /* _isatty */
+#include <sys/stat.h>
 #define IS_CONSOLE(stdStream) _isatty(_fileno(stdStream))
 #elif defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) || defined(_POSIX_SOURCE) || (defined(__APPLE__) && defined(__MACH__)) || \
       defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)  /* https://sourceforge.net/p/predef/wiki/OperatingSystems/ */