summaryrefslogtreecommitdiff
path: root/lib/xstat.in
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-06-13 09:05:16 +0000
committerJim Meyering <jim@meyering.net>2000-06-13 09:05:16 +0000
commitb198a2055585aeb0c5f050e4f954a7ecfb01fdf7 (patch)
treec89f987c332ac012e8907cb6fa881c4398e3c320 /lib/xstat.in
parent54ab4a172f75e714bcdfa98452027bac36275c3d (diff)
downloadcoreutils-b198a2055585aeb0c5f050e4f954a7ecfb01fdf7.tar.xz
Include <stdlib.h> in lstat, to declare "free".
Diffstat (limited to 'lib/xstat.in')
-rw-r--r--lib/xstat.in4
1 files changed, 4 insertions, 0 deletions
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 <stdlib.h>
+#endif
+
#ifdef STAT_MACROS_BROKEN
# undef S_ISLNK
#endif