summaryrefslogtreecommitdiff
path: root/src/copy.h
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/copy.h
parent22b464a900a9190fa97ba43e06b5824ffa6c67e9 (diff)
downloadcoreutils-a6e5563cef766e7d2870465ca9f5f82125bf7025.tar.xz
Include "lstat.h" rather than rolling our own.
Diffstat (limited to 'src/copy.h')
-rw-r--r--src/copy.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/copy.h b/src/copy.h
index f90bb96d1..8ef0f9dd1 100644
--- a/src/copy.h
+++ b/src/copy.h
@@ -22,6 +22,7 @@
# include <stdbool.h>
# include "hash.h"
+# include "lstat.h"
/* Control creation of sparse files (files with holes). */
enum Sparse_type
@@ -197,15 +198,6 @@ struct cp_options
? lstat (Src_name, Src_sb) \
: stat (Src_name, Src_sb))
-/* 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 rpl_lstat
-# endif
-
/* Arrange to make rename calls go through the wrapper function
on systems with a rename function that fails for a source file name
specified with a trailing slash. */