Code

Fix to add uintmax_t, for check_disk.c compile
authorTon Voon <tonvoon@users.sourceforge.net>
Wed, 19 Jul 2006 22:56:48 +0000 (22:56 +0000)
committerTon Voon <tonvoon@users.sourceforge.net>
Wed, 19 Jul 2006 22:56:48 +0000 (22:56 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1456 f882894a-f735-0410-b71e-b25c423dba1c

plugins/common.h

index 2b65bafd5be509f03d73c1cbe15e5ebd87672244..47252aa42134ca7a44a0e0806f6cde1e7941bca7 100644 (file)
 #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