From: Jim Meyering Date: Thu, 25 Dec 1997 16:48:29 +0000 (+0000) Subject: (copy_internal): Use S_ISLNK only if defined. X-Git-Tag: FILEUTILS-3_16h~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9f538deb9fc4e34d90abb06ff32ecd00191b704;p=thirdparty%2Fcoreutils.git (copy_internal): Use S_ISLNK only if defined. --- diff --git a/src/copy.c b/src/copy.c index 238a6656e0..29c71723f1 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) {