/* Work around the bug in some systems whereby @xstat@ succeeds when
given the zero-length file name argument. The @xstat@ from SunOS4.1.4
has this bug.
- Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1997-2000 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
#endif
@BEGIN_LSTAT_ONLY@
+#if HAVE_STDLIB_H
+# include <stdlib.h>
+#endif
+
#ifdef STAT_MACROS_BROKEN
# undef S_ISLNK
#endif
# define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
#endif
+#ifndef HAVE_DECL_FREE
+"this configure-time declaration test was not run"
+#endif
+#if !HAVE_DECL_FREE
+void free ();
+#endif
+
char *xmalloc ();
/* lstat works different on Linux and Solaris systems. POSIX (see