Code

Solaris 8 fixes: Check for <stdint.h> before inclusion.
authorAurélien Reynaud <collectd@wattapower.net>
Thu, 29 Apr 2010 07:39:48 +0000 (09:39 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Thu, 29 Apr 2010 07:59:47 +0000 (09:59 +0200)
configure.in
src/libcollectdclient/client.h

index f8bf90cc69308cb85a2ff3a3594a298472becf26..95552fd047ca6ab378ec4533e0543f543ea4db93 100644 (file)
@@ -690,6 +690,7 @@ if test "x$fp_layout_type" = "xunknown"; then
 #if HAVE_STDINT_H
 # include <stdint.h>
 #endif
+#include <inttypes.h>
 #if HAVE_STDBOOL_H
 # include <stdbool.h>
 #endif
@@ -734,6 +735,7 @@ if test "x$fp_layout_type" = "xunknown"; then
 #if HAVE_STDINT_H
 # include <stdint.h>
 #endif
+#include <inttypes.h>
 #if HAVE_STDBOOL_H
 # include <stdbool.h>
 #endif
@@ -786,6 +788,7 @@ if test "x$fp_layout_type" = "xunknown"; then
 #if HAVE_STDINT_H
 # include <stdint.h>
 #endif
+#include <inttypes.h>
 #if HAVE_STDBOOL_H
 # include <stdbool.h>
 #endif
index b0d092d0d8c9ab3534249242279a1c43f43f94fd..11e7b13cc31575ee83d598a1f75984ae19b09e63 100644 (file)
@@ -27,7 +27,9 @@
 /*
  * Includes (for data types)
  */
-#include <stdint.h>
+#if HAVE_STDINT_H
+# include <stdint.h>
+#endif
 #include <inttypes.h>
 #include <time.h>