summary refs log tree commit diff
path: root/seq.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 /seq.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 'seq.c')
-rw-r--r--seq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/seq.c b/seq.c
index 1441a0c..7c9fc12 100644
--- a/seq.c
+++ b/seq.c
@@ -328,8 +328,10 @@ iterdir(char *dir, void (*cb)(char *))
 	}
 
 	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;
 		if (fd2)