From 5d9663a9805fe23950df96fa883418d103ab9693 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Tue, 26 Jul 2016 18:17:12 +0200 Subject: guard DT_* usage It's a shortcut anyway, just leave it out --- minc.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'minc.c') 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; -- cgit 1.4.1