diff options
Diffstat (limited to 'io')
-rw-r--r-- | io/fts.c | 2 | ||||
-rw-r--r-- | io/sys/stat.h | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -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 diff --git a/io/sys/stat.h b/io/sys/stat.h index 76ef3c5f28..944c436d8c 100644 --- a/io/sys/stat.h +++ b/io/sys/stat.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1992, 1995, 1996, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991, 92, 95, 96, 97, 98 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -92,7 +92,7 @@ __BEGIN_DECLS # ifdef __S_IFIFO # define S_IFIFO __S_IFIFO # endif -# ifndef __USE_UNIX98 +# if defined __USE_BSD || defined __USE_MISC # ifdef __S_IFLNK # define S_IFLNK __S_IFLNK # endif |