about summary refs log tree commit diff
path: root/mseq.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 /mseq.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 'mseq.c')
-rw-r--r--mseq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mseq.c b/mseq.c
index adcec5b..87ff6f1 100644
--- a/mseq.c
+++ b/mseq.c
@@ -54,8 +54,10 @@ namescan(char *dir)
 	if (!fd)
 		return;
 	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;