[Nagiosplug-checkins] nagiosplug/plugins common.h,1.22,1.23

Ton Voon tonvoon at users.sourceforge.net
Thu Jul 20 00:56:50 CEST 2006


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv27937

Modified Files:
	common.h 
Log Message:
Fix to add uintmax_t, for check_disk.c compile


Index: common.h
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/common.h,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- common.h	19 Jul 2006 22:37:36 -0000	1.22
+++ common.h	19 Jul 2006 22:56:48 -0000	1.23
@@ -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





More information about the Commits mailing list