diff --git a/lib/xstat.in b/lib/xstat.in index 825ae19b5..4a22dcc8e 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