X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fxstat.in;h=3f10ef3b93ccbbc711c35587c3c92e59044add93;hb=e6d6498c6caf7642510024fefbf64e9d477b19cf;hp=825ae19b5796ea984ed075acc69404558de659ad;hpb=14f7fd8527011bf559082d2ceabfc7d931aa3920;p=gnulib.git diff --git a/lib/xstat.in b/lib/xstat.in index 825ae19b5..3f10ef3b9 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,9 +43,16 @@ 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 +/* lstat works differently on Linux and Solaris systems. POSIX (see `pathname resolution' in the glossary) requires that programs like `ls' take into consideration the fact that FILE has a trailing slash when FILE is a symbolic link. On Linux systems, the lstat function already