summaryrefslogtreecommitdiffstats
path: root/CMake/statvfs.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'CMake/statvfs.h.in')
-rw-r--r--CMake/statvfs.h.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/CMake/statvfs.h.in b/CMake/statvfs.h.in
new file mode 100644
index 0000000..d0ec238
--- /dev/null
+++ b/CMake/statvfs.h.in
@@ -0,0 +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