summaryrefslogtreecommitdiff
path: root/m4/fsusage.m4
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-08-23 23:40:21 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-08-23 23:40:21 +0000
commitcc1bfb5addeb6e1a580ebaeed2c5d89463771226 (patch)
treed6460cf1de64ea6c9460fa0f97d034e679dedf88 /m4/fsusage.m4
parent48e1f1c3cb950bbf7290fad28d8f75ddcd11c055 (diff)
downloadgnulib-cc1bfb5addeb6e1a580ebaeed2c5d89463771226.tar.gz
* m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
as unusable.
Diffstat (limited to 'm4/fsusage.m4')
-rw-r--r--m4/fsusage.m46
1 files changed, 4 insertions, 2 deletions
diff --git a/m4/fsusage.m4 b/m4/fsusage.m4
index 78266f1106..23116b5f22 100644
--- a/m4/fsusage.m4
+++ b/m4/fsusage.m4
@@ -1,4 +1,4 @@
-#serial 18
+#serial 19
# Obtaining file system usage information.
# Copyright (C) 1997, 1998, 2000, 2001, 2003, 2004, 2005, 2006 Free Software
@@ -48,10 +48,12 @@ if test $ac_fsusage_space = no; then
# SVR4
AC_CACHE_CHECK([for statvfs function (SVR4)], fu_cv_sys_stat_statvfs,
[AC_TRY_LINK([#include <sys/types.h>
-#ifdef __GLIBC__
+#if defined __GLIBC__ && !defined __BEOS__
Do not use statvfs on systems with GNU libc, because that function stats
all preceding entries in /proc/mounts, and that makes df hang if even
one of the corresponding file systems is hard-mounted, but not available.
+statvfs in GNU libc on BeOS operates differently: it only makes a system
+call.
#endif
#include <sys/statvfs.h>],
[struct statvfs fsd; statvfs (0, &fsd);],