summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-01-04 08:55:19 +0000
committerJim Meyering <jim@meyering.net>2003-01-04 08:55:19 +0000
commit1cf764991fa715cd476e1dad38da6324491a6404 (patch)
tree22d6b6e883707d021eda56473771f86325339a5d /src
parenta4efa35cd766978879bb99f3843baacab897f681 (diff)
downloadcoreutils-1cf764991fa715cd476e1dad38da6324491a6404.tar.xz
(count_entry) [S_ISLNK]: Don't define.
It's already defined in sys2.h.
Diffstat (limited to 'src')
-rw-r--r--src/du.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/du.c b/src/du.c
index a4648be67..849b66cf0 100644
--- a/src/du.c
+++ b/src/du.c
@@ -1,5 +1,5 @@
/* du -- summarize disk usage
- Copyright (C) 88, 89, 90, 91, 1995-2002 Free Software Foundation, Inc.
+ Copyright (C) 88, 89, 90, 91, 1995-2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -451,9 +451,7 @@ count_entry (const char *ent, int top, dev_t last_dev, int depth)
if (opt_one_file_system && !top && last_dev != dir_dev)
return 0; /* Don't enter a new file system. */
-#ifndef S_ISLNK
-# define S_ISLNK(s) 0
-#endif
+
/* If we're traversing more than one level, or if we're
dereferencing symlinks and we're about to chdir through a
symlink, remember the current directory so we can return to