about summary refs log tree commit diff
path: root/minc.c
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-07-26 18:17:12 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-07-26 18:17:12 +0200
commit5d9663a9805fe23950df96fa883418d103ab9693 (patch)
treebf9a02d46edae2026abcb46450659df14bd0c676 /minc.c
parent6592bdb9126326dee00f5e0d90b1cbb393f90096 (diff)
downloadmblaze-5d9663a9805fe23950df96fa883418d103ab9693.tar.gz
mblaze-5d9663a9805fe23950df96fa883418d103ab9693.tar.xz
mblaze-5d9663a9805fe23950df96fa883418d103ab9693.zip
guard DT_* usage
It's a shortcut anyway, just leave it out
Diffstat (limited to 'minc.c')
-rw-r--r--minc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/minc.c b/minc.c
index 3788f35..d5da38a 100644
--- a/minc.c
+++ b/minc.c
@@ -33,8 +33,10 @@ inc(char *dir)
 	}
 
 	while ((d = readdir(fd))) {
+#if defined(DT_REG) && defined(DT_UNKNOWN)
 		if (d->d_type != DT_REG && d->d_type != DT_UNKNOWN)
 			continue;
+#endif
 		if (d->d_name[0] == '.')
 			continue;