X-Git-Url: https://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fxstat.in;h=6e357a8d1eff55065ef0d6e3ed81b42b5689a90e;hb=806acc84e56b614cd7766862855d51d5e9943c0b;hp=04fe0fbf271b8e69305d910a628dadeef63a2b3d;hpb=7745004baa6900046558737f248ed1dca87c39a6;p=gnulib.git diff --git a/lib/xstat.in b/lib/xstat.in index 04fe0fbf2..6e357a8d1 100644 --- a/lib/xstat.in +++ b/lib/xstat.in @@ -4,7 +4,7 @@ /* 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 @@ -32,6 +32,10 @@ extern int errno; #endif @BEGIN_LSTAT_ONLY@ +#if HAVE_STDLIB_H +# include +#endif + #ifdef STAT_MACROS_BROKEN # undef S_ISLNK #endif @@ -39,6 +43,13 @@ extern int errno; # 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