(fts_build): Don't try to use d_type if it doesn't exist.
authordrepper <drepper>
Tue, 10 Feb 1998 19:51:27 +0000 (19:51 +0000)
committerdrepper <drepper>
Tue, 10 Feb 1998 19:51:27 +0000 (19:51 +0000)
io/fts.c

index 2ddb295..73f502f 100644 (file)
--- a/io/fts.c
+++ b/io/fts.c
@@ -703,7 +703,7 @@ mem1:                               saved_errno = errno;
                                p->fts_info = FTS_NSOK;
                        p->fts_accpath = cur->fts_accpath;
                } else if (nlinks == 0
-#ifdef DT_DIR
+#if defined DT_DIR && defined _DIRENT_HAVE_D_TYPE
                    || nlinks > 0 &&
                    dp->d_type != DT_DIR && dp->d_type != DT_UNKNOWN
 #endif