rrdtool plugin: Include the `rrd.h' header file in `rrdtool.c', not `collectd.h'.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Thu, 25 Oct 2007 21:11:54 +0000 (23:11 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Thu, 25 Oct 2007 21:11:54 +0000 (23:11 +0200)
This caused an error when --with-rrdtool was used to have the header file in a
non-standard directory, because the appropriate CFLAGS were not passed to all
plugins.

src/collectd.h
src/rrdtool.c

index 282e632..2849db2 100644 (file)
 # include <kstat.h>
 #endif
 
-#if HAVE_RRD_H
-# include <rrd.h>
-#endif
 #if HAVE_PTH_H
 # include <pth.h>
 #endif
index 9fc6872..3688581 100644 (file)
@@ -24,6 +24,8 @@
 #include "common.h"
 #include "utils_avltree.h"
 
+#include <rrd.h>
+
 #if HAVE_PTHREAD_H
 # include <pthread.h>
 #endif