From 8b6d9e5eab1dfb792c319d06a0e16a92452205b8 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Wed, 19 Jul 2006 22:56:48 +0000 Subject: [PATCH] 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 --- plugins/common.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/plugins/common.h b/plugins/common.h index 2b65baf..47252aa 100644 --- a/plugins/common.h +++ b/plugins/common.h @@ -44,6 +44,19 @@ #include /* obligatory includes */ #include #include + +/* This block provides uintmax_t - should be reported to coreutils that this should be added to fsuage.h */ +#if HAVE_INTTYPES_H +# include +#endif +#if HAVE_STDINT_H +# include +#endif +#include +#ifndef UINTMAX_MAX +# define UINTMAX_MAX ((uintmax_t) -1) +#endif + #include /* This is assumed true, because coreutils assume it too */ #ifdef HAVE_MATH_H -- 2.30.2