From 1cf764991fa715cd476e1dad38da6324491a6404 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 4 Jan 2003 08:55:19 +0000 Subject: (count_entry) [S_ISLNK]: Don't define. It's already defined in sys2.h. --- src/du.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/du.c') 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 -- cgit v1.2.3-54-g00ecf