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