summaryrefslogtreecommitdiff
path: root/src/ls.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-11-12 08:31:05 +0000
committerJim Meyering <jim@meyering.net>2002-11-12 08:31:05 +0000
commit3048fb4d0fcb6811114e928ec9a783be285d5b44 (patch)
tree27f3e999946e923c0e85e59e63e4c046ebaa4e60 /src/ls.c
parent1cd5cc1b70c1f0a2ce96c69e6dc42733375b52d7 (diff)
downloadcoreutils-3048fb4d0fcb6811114e928ec9a783be285d5b44.tar.xz
(HAVE_SYMLINKS): Remove unnecessary macro definition.
Replace sole use with equivalent `#ifdef S_ISLNK'. Inconsistency reported by Dmitry V. Levin.
Diffstat (limited to 'src/ls.c')
-rw-r--r--src/ls.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/ls.c b/src/ls.c
index f562241a9..246e7f07e 100644
--- a/src/ls.c
+++ b/src/ls.c
@@ -142,12 +142,6 @@ int wcwidth ();
# define INODE_DIGITS 7
#endif
-#ifdef S_ISLNK
-# define HAVE_SYMLINKS 1
-#else
-# define HAVE_SYMLINKS 0
-#endif
-
/* 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. */
@@ -2445,7 +2439,7 @@ gobble_file (const char *name, enum filetype type, int explicit_arg,
return blocks;
}
-#if HAVE_SYMLINKS
+#ifdef S_ISLNK
/* Put the name of the file that `filename' is a symbolic link to
into the `linkname' field of `f'. */