about summary refs log tree commit diff
path: root/minc.c
diff options
context:
space:
mode:
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;