summaryrefslogtreecommitdiff
path: root/lib/fts.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-07-03 09:27:22 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-07-03 09:27:22 +0000
commit7e58462337dc31dd9debe6a528c2487cb9f9fc71 (patch)
tree17d59c1fa48f2f00ea1170ccb3a945c7f7b9de03 /lib/fts.c
parenta90f160a3317d9bea10dd77e2120e24bdb83f14f (diff)
downloadcoreutils-7e58462337dc31dd9debe6a528c2487cb9f9fc71.tar.xz
[! _LIBC]: Include "lstat.h" rather than rolling our own.
Diffstat (limited to 'lib/fts.c')
-rw-r--r--lib/fts.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/lib/fts.c b/lib/fts.c
index 80fd979bb..da0bface4 100644
--- a/lib/fts.c
+++ b/lib/fts.c
@@ -71,6 +71,10 @@ static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94";
#include <string.h>
#include <unistd.h>
+#if ! _LIBC
+# include "lstat.h"
+#endif
+
#if defined _LIBC
# include <dirent.h>
# define NAMLEN(dirent) _D_EXACT_NAMLEN (dirent)
@@ -111,15 +115,6 @@ static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94";
# define internal_function /* empty */
#endif
-/* Arrange to make lstat calls go through the wrapper function
- on systems with an lstat function that does not dereference symlinks
- that are specified with a trailing slash. */
-#if ! _LIBC && ! LSTAT_FOLLOWS_SLASHED_SYMLINK
-int rpl_lstat (const char *, struct stat *);
-# undef lstat
-# define lstat(Name, Stat_buf) rpl_lstat(Name, Stat_buf)
-#endif
-
#ifndef __set_errno
# define __set_errno(Val) errno = (Val)
#endif