aboutsummaryrefslogtreecommitdiff
path: root/plugins/common.h
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-07-19 22:56:48 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-07-19 22:56:48 +0000
commit8b6d9e5eab1dfb792c319d06a0e16a92452205b8 (patch)
treea57136e79fa2778a25791adabf45f92bda9bc059 /plugins/common.h
parent7a8b72672fa33c3136c4e3eee05bbc121f45d2ee (diff)
downloadmonitoring-plugins-8b6d9e5eab1dfb792c319d06a0e16a92452205b8.tar.gz
Fix to add uintmax_t, for check_disk.c compile
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1456 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/common.h')
-rw-r--r--plugins/common.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/common.h b/plugins/common.h
index 2b65bafd..47252aa4 100644
--- a/plugins/common.h
+++ b/plugins/common.h
@@ -44,6 +44,19 @@
#include <stdio.h> /* obligatory includes */
#include <stdlib.h>
#include <errno.h>
+
+/* This block provides uintmax_t - should be reported to coreutils that this should be added to fsuage.h */
+#if HAVE_INTTYPES_H
+# include <inttypes.h>
+#endif
+#if HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#include <unistd.h>
+#ifndef UINTMAX_MAX
+# define UINTMAX_MAX ((uintmax_t) -1)
+#endif
+
#include <limits.h> /* This is assumed true, because coreutils assume it too */
#ifdef HAVE_MATH_H