diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2005-07-03 09:31:19 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2005-07-03 09:31:19 +0000 |
commit | a6e5563cef766e7d2870465ca9f5f82125bf7025 (patch) | |
tree | 44407e5a3775eb87ff8a61ed4e3692f2c8b8ff2b /src/ls.c | |
parent | 22b464a900a9190fa97ba43e06b5824ffa6c67e9 (diff) | |
download | coreutils-a6e5563cef766e7d2870465ca9f5f82125bf7025.tar.xz |
Include "lstat.h" rather than rolling our own.
Diffstat (limited to 'src/ls.c')
-rw-r--r-- | src/ls.c | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -115,6 +115,7 @@ int wcwidth (); #include "filemode.h" #include "inttostr.h" #include "ls.h" +#include "lstat.h" #include "mbswidth.h" #include "obstack.h" #include "quote.h" @@ -138,15 +139,6 @@ int wcwidth (); Subtracting doesn't always work, due to overflow. */ #define longdiff(a, b) ((a) < (b) ? -1 : (a) > (b)) -/* 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 ! LSTAT_FOLLOWS_SLASHED_SYMLINK -int rpl_lstat (const char *, struct stat *); -# undef lstat -# define lstat(Name, Stat_buf) rpl_lstat(Name, Stat_buf) -#endif - #if HAVE_STRUCT_DIRENT_D_TYPE && defined DTTOIF # define DT_INIT(Val) = Val #else |