Code

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 282e632520ce08cb1a755588c251a10f53aa4e24..2849db27234002a6cae6f4b3bb193f2db657b0e6 100644 (file)
 # include <kstat.h>
 #endif
 
-#if HAVE_RRD_H
-# include <rrd.h>
-#endif
 #if HAVE_PTH_H
 # include <pth.h>
 #endif
index 9fc687285cab7ae9894f3285d086a5f810d52b7f..368858172a92dfee9fb52d56eebb3e86e5c2ab57 100644 (file)
@@ -24,6 +24,8 @@
 #include "common.h"
 #include "utils_avltree.h"
 
+#include <rrd.h>
+
 #if HAVE_PTHREAD_H
 # include <pthread.h>
 #endif