diff options
Diffstat (limited to 'mdirs.c')
-rw-r--r-- | mdirs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mdirs.c b/mdirs.c index 73fbb9f..8caa32d 100644 --- a/mdirs.c +++ b/mdirs.c @@ -42,8 +42,10 @@ mdirs(char *fpath) } while ((d = readdir(dir))) { +#if defined(DT_DIR) && defined(DT_UNKNOWN) if (d->d_type != DT_DIR && d->d_type != DT_UNKNOWN) continue; +#endif if (d->d_name[0] == '.' && d->d_name[1] == 0) continue; |