Fix statfs/statvfs decision

We want to force use of statvfs when statfs is deficient.
This does not make any difference on Linux.

https://bugzilla.gnome.org/show_bug.cgi?id=656151
This commit is contained in:
Matthias Clasen 2011-08-13 15:07:38 -04:00
parent f5472ed232
commit 3c504e4765

View File

@ -1015,7 +1015,7 @@ AC_MSG_CHECKING([whether to use statfs or statvfs])
AS_IF([test x$ac_cv_func_statfs = xyes && test x$ac_cv_func_statvfs = xyes],
[
# on solaris and irix, statfs doesn't even have the f_bavail field
AS_IF([test x$ac_cv_member_struct_statfs_f_bavail = xyes],
AS_IF([test x$ac_cv_member_struct_statfs_f_bavail = xno],
[ac_cv_func_statfs=no],
# else, at least on linux, statfs is the actual syscall
[ac_cv_func_statvfs=no])