--- a/gl/m4/fsusage.m4 2012-09-19 10:30:40.000000000 +0200 +++ b/gl/m4/fsusage.m4 2012-09-19 10:31:22.000000000 +0200 @@ -47,12 +47,14 @@ # SVR4 AC_CACHE_CHECK([for statvfs function (SVR4)], [fu_cv_sys_stat_statvfs], [AC_TRY_LINK([#include -#if defined __GLIBC__ && defined __linux__ -Do not use statvfs on systems with GNU libc on Linux, 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 Hurd, BeOS, Haiku operates differently: it only makes -a system call. +#ifndef __UCLIBC__ + #if defined __GLIBC__ && defined __linux__ + Do not use statvfs on systems with GNU libc on Linux, 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 Hurd, BeOS, Haiku operates differently: it only makes + a system call. + #endif #endif #ifdef __osf__