From: Paul Eggert Date: Sun, 3 Jul 2005 09:27:22 +0000 (+0000) Subject: [! _LIBC]: Include "lstat.h" rather than rolling our own. X-Git-Tag: CPPI-1_12~361 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7e58462337dc31dd9debe6a528c2487cb9f9fc71;p=platform%2Fupstream%2Fcoreutils.git [! _LIBC]: Include "lstat.h" rather than rolling our own. --- diff --git a/lib/fts.c b/lib/fts.c index 80fd979..da0bfac 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 #include +#if ! _LIBC +# include "lstat.h" +#endif + #if defined _LIBC # include # 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