summaryrefslogtreecommitdiff
path: root/src/copy.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-12-25 16:48:29 +0000
committerJim Meyering <jim@meyering.net>1997-12-25 16:48:29 +0000
commitc9f538deb9fc4e34d90abb06ff32ecd00191b704 (patch)
tree3a751462c794ba2d243d3c38f3e0f8c9cb4933ae /src/copy.c
parent88df9ef6f685f80ec6d8c98698ea5c1fd2f55eb0 (diff)
downloadcoreutils-c9f538deb9fc4e34d90abb06ff32ecd00191b704.tar.xz
(copy_internal): Use S_ISLNK only if defined.
Diffstat (limited to 'src/copy.c')
-rw-r--r--src/copy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/copy.c b/src/copy.c
index 238a6656e..29c71723f 100644
--- a/src/copy.c
+++ b/src/copy.c
@@ -366,6 +366,7 @@ copy_internal (const char *src_path, const char *dst_path,
same = (src_sb.st_ino == dst_sb.st_ino
&& src_sb.st_dev == dst_sb.st_dev);
+#ifdef S_ISLNK
/* If we're preserving symlinks (--no-dereference) and the
destination file is a symlink, use stat (not xstat) to
see if it points back to the source. */
@@ -377,6 +378,7 @@ copy_internal (const char *src_path, const char *dst_path,
src_sb.st_dev == dst2_sb.st_dev))
same = 1;
}
+#endif
if (same)
{