X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fxstat.in;h=6e357a8d1eff55065ef0d6e3ed81b42b5689a90e;hb=c4bb152d6b3bc125b7b2a8872e682726ac05272b;hp=825ae19b5796ea984ed075acc69404558de659ad;hpb=14f7fd8527011bf559082d2ceabfc7d931aa3920;p=gnulib.git diff --git a/lib/xstat.in b/lib/xstat.in index 825ae19b5..6e357a8d1 100644 --- a/lib/xstat.in +++ b/lib/xstat.in @@ -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