summaryrefslogtreecommitdiffstats
path: root/programs/lz4io.c
diff options
context:
space:
mode:
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