summaryrefslogtreecommitdiffstats
path: root/programs/lz4cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'programs/lz4cli.c')
-rw-r--r--programs/lz4cli.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/programs/lz4cli.c b/programs/lz4cli.c
index 970856d..fc5a34a 100644
--- a/programs/lz4cli.c
+++ b/programs/lz4cli.c
@@ -67,6 +67,11 @@
*****************************/
#if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(_WIN32)
# include <io.h> /* _isatty */
+# if defined(__DJGPP__)
+# include <unistd.h>
+# define _isatty isatty
+# define _fileno fileno
+# endif
# ifdef __MINGW32__
int _fileno(FILE *stream); /* MINGW somehow forgets to include this prototype into <stdio.h> */
# endif