summaryrefslogtreecommitdiff
path: root/src/ls.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-07-03 09:31:19 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-07-03 09:31:19 +0000
commita6e5563cef766e7d2870465ca9f5f82125bf7025 (patch)
tree44407e5a3775eb87ff8a61ed4e3692f2c8b8ff2b /src/ls.c
parent22b464a900a9190fa97ba43e06b5824ffa6c67e9 (diff)
downloadcoreutils-a6e5563cef766e7d2870465ca9f5f82125bf7025.tar.xz
Include "lstat.h" rather than rolling our own.
Diffstat (limited to 'src/ls.c')
-rw-r--r--src/ls.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/ls.c b/src/ls.c
index 1a6a9c50e..efbd6ef60 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -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