summaryrefslogtreecommitdiffstats
path: root/programs/lz4io.c
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2015-03-31 12:17:38 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2015-03-31 12:17:38 (GMT)
commit8437a0e43aa5086ec2c23591909e118a85c3d8dd (patch)
treeaab3ca7f5cd39661d53e3fbef70bdca0e5043cda /programs/lz4io.c
parenteeb8bea34c2df279307eaed922f3a89cc420316c (diff)
downloadlz4-8437a0e43aa5086ec2c23591909e118a85c3d8dd.zip
lz4-8437a0e43aa5086ec2c23591909e118a85c3d8dd.tar.gz
lz4-8437a0e43aa5086ec2c23591909e118a85c3d8dd.tar.bz2
Fixed : Visual compilation
Diffstat (limited to 'programs/lz4io.c')
-rw-r--r--programs/lz4io.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/programs/lz4io.c b/programs/lz4io.c
index 34d24bf..02e03c8 100644
--- a/programs/lz4io.c
+++ b/programs/lz4io.c
@@ -75,6 +75,10 @@
# define SET_SPARSE_FILE_MODE(file)
#endif
+#if !defined(S_ISREG)
+# define S_ISREG(x) (((x) & S_IFMT) == S_IFREG)
+#endif
+
/*****************************
* Constants