summaryrefslogtreecommitdiff
path: root/buildlib/statvfs.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'buildlib/statvfs.h.in')
-rw-r--r--buildlib/statvfs.h.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/buildlib/statvfs.h.in b/buildlib/statvfs.h.in
index 86b8c52cd..d0ec238ad 100644
--- a/buildlib/statvfs.h.in
+++ b/buildlib/statvfs.h.in
@@ -1,4 +1,13 @@
/* Compatibility for systems with out Single Unix Spec statvfs */
+#include <config.h>
+
+#ifdef HAVE_VFS_H
#include <sys/vfs.h>
+#endif
+
+#ifdef HAVE_MOUNT_H
+#include <sys/param.h>
+#include <sys/mount.h>
+#endif
#define statvfs statfs