From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/453401-fsusage-config.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 web/attachments/453401-fsusage-config.patch (limited to 'web/attachments/453401-fsusage-config.patch') 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 @@ +--- 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__ -- cgit v1.2.3-74-g34f1