summaryrefslogtreecommitdiffstats
path: root/programs/lz4cli.c
diff options
context:
space:
mode:
authorLouis P. Santillan <lpsantil@gmail.com>2015-05-26 04:41:45 (GMT)
committerLouis P. Santillan <lpsantil@gmail.com>2015-05-26 04:41:45 (GMT)
commitb2bbb2790d50f09b594f6588ebdade62966b5d5c (patch)
treeaa6d98a147d5c7366fe7b5b53e6ef142b0a633c8 /programs/lz4cli.c
parent7d182b816ace89d6d6d16b7aee376a9962a05caa (diff)
downloadlz4-b2bbb2790d50f09b594f6588ebdade62966b5d5c.zip
lz4-b2bbb2790d50f09b594f6588ebdade62966b5d5c.tar.gz
lz4-b2bbb2790d50f09b594f6588ebdade62966b5d5c.tar.bz2
Fixup programs/{Makefile,lz4cli.c,lz4io.c} to build with Andrew Wu's build-djgpp cross compilers. Add some documentation in README.DJ
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