summaryrefslogtreecommitdiffstats
path: root/web/attachments/453401-fsusage-config.patch
blob: 52d860ad38352865bccb91fe1cdbfd93662fc1aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- 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 <sys/types.h>
-#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__