diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-04-25 22:57:06 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:04:27 -0500 |
commit | c40d7ebfe2365229275bcfb778ba41a0ec83d2fe (patch) | |
tree | eff46f6d92ed199a65d9778ae181caae38403863 /source4/lib/util | |
parent | c8106b2669fc17e38c924bd545a952702cfacf65 (diff) | |
download | samba-c40d7ebfe2365229275bcfb778ba41a0ec83d2fe.tar.gz samba-c40d7ebfe2365229275bcfb778ba41a0ec83d2fe.tar.bz2 samba-c40d7ebfe2365229275bcfb778ba41a0ec83d2fe.zip |
r15257: Look for headers before trying to use them in any tests. This
should fix the OpenBSD build
(This used to be commit 6172731af1f91d4e5f9d49284a179b0966ba19ef)
Diffstat (limited to 'source4/lib/util')
-rw-r--r-- | source4/lib/util/fsusage.m4 | 8 |
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. |