]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(HAVE_SYMLINKS): Remove unnecessary macro definition.
authorJim Meyering <jim@meyering.net>
Tue, 12 Nov 2002 08:31:05 +0000 (08:31 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 12 Nov 2002 08:31:05 +0000 (08:31 +0000)
Replace sole use with equivalent `#ifdef S_ISLNK'.
Inconsistency reported by Dmitry V. Levin.

src/ls.c

index f562241a9e28f931881b29c895c49b02e44d1601..246e7f07ee3c76f3bbfefd298adb63162d76c002 100644 (file)
--- 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'. */