about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--mseq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mseq.c b/mseq.c
index e8bdd62..b8ebcfe 100644
--- a/mseq.c
+++ b/mseq.c
@@ -12,6 +12,7 @@
 #include <unistd.h>
 
 #include "blaze822.h"
+#include "blaze822_priv.h"
 
 static int fflag;
 static int rflag;
@@ -58,10 +59,9 @@ 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)
+		if (!MAIL_DT(d->d_type))
 			continue;
-#endif
+
 		if (d->d_name[0] == '.')
 			continue;