summaryrefslogtreecommitdiff
path: root/source4/lib/util/fsusage.m4
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/util/fsusage.m4')
-rw-r--r--source4/lib/util/fsusage.m48
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/lib/util/fsusage.m4 b/source4/lib/util/fsusage.m4
index ce8489493c..6d5d13fe25 100644
--- a/source4/lib/util/fsusage.m4
+++ b/source4/lib/util/fsusage.m4
@@ -1,7 +1,13 @@
#################################################
# these tests are taken from the GNU fileutils package
AC_CHECKING(how to get filesystem space usage)
-AC_CHECK_HEADERS(sys/statfs.h sys/statvfs.h)
+AC_CHECK_HEADERS(sys/statfs.h sys/statvfs.h sys/vfs.h)
+
+AC_CHECK_HEADERS(sys/mount.h, , , [AC_INCLUDES_DEFAULT
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif])
+
space=no
# Test for statvfs64.