Define to rpl_lstat, so that even on systems like Solaris 5.8,
du honors (per POSIX) the trailing slash on an argument referring
to a symlink-to-directory.
int stat ();
int lstat ();
+/* 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. */
+#if ! LSTAT_FOLLOWS_SLASHED_SYMLINK
+int rpl_lstat (char const *, struct stat *);
+# undef lstat
+# define lstat rpl_lstat
+#endif
+
/* Name under which this program was invoked. */
char *program_name;