Include <stdlib.h> in lstat, to declare "free".
authorJim Meyering <jim@meyering.net>
Tue, 13 Jun 2000 09:05:16 +0000 (09:05 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 13 Jun 2000 09:05:16 +0000 (09:05 +0000)
lib/xstat.in

index 825ae19..4a22dcc 100644 (file)
@@ -32,6 +32,10 @@ extern int errno;
 #endif
 @BEGIN_LSTAT_ONLY@
 
+#if HAVE_STDLIB_H
+# include <stdlib.h>
+#endif
+
 #ifdef STAT_MACROS_BROKEN
 # undef S_ISLNK
 #endif