summaryrefslogtreecommitdiffstats
path: root/web/attachments/453401-fsusage-config.patch
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
commit0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch)
tree1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/453401-fsusage-config.patch
downloadsite-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files.
Diffstat (limited to 'web/attachments/453401-fsusage-config.patch')
-rw-r--r--web/attachments/453401-fsusage-config.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/web/attachments/453401-fsusage-config.patch b/web/attachments/453401-fsusage-config.patch
new file mode 100644
index 0000000..52d860a
--- /dev/null
+++ b/web/attachments/453401-fsusage-config.patch
@@ -0,0 +1,23 @@
1--- a/gl/m4/fsusage.m4 2012-09-19 10:30:40.000000000 +0200
2+++ b/gl/m4/fsusage.m4 2012-09-19 10:31:22.000000000 +0200
3@@ -47,12 +47,14 @@
4 # SVR4
5 AC_CACHE_CHECK([for statvfs function (SVR4)], [fu_cv_sys_stat_statvfs],
6 [AC_TRY_LINK([#include <sys/types.h>
7-#if defined __GLIBC__ && defined __linux__
8-Do not use statvfs on systems with GNU libc on Linux, because that function
9-stats all preceding entries in /proc/mounts, and that makes df hang if even
10-one of the corresponding file systems is hard-mounted, but not available.
11-statvfs in GNU libc on Hurd, BeOS, Haiku operates differently: it only makes
12-a system call.
13+#ifndef __UCLIBC__
14+ #if defined __GLIBC__ && defined __linux__
15+ Do not use statvfs on systems with GNU libc on Linux, because that function
16+ stats all preceding entries in /proc/mounts, and that makes df hang if even
17+ one of the corresponding file systems is hard-mounted, but not available.
18+ statvfs in GNU libc on Hurd, BeOS, Haiku operates differently: it only makes
19+ a system call.
20+ #endif
21 #endif
22
23 #ifdef __osf__