Code

rrdcached plugin: Work around a bug in RRDtool 1.4rc2.
authorSebastian Harl <sh@tokkee.org>
Wed, 28 Oct 2009 16:38:51 +0000 (17:38 +0100)
committerSebastian Harl <sh@tokkee.org>
Wed, 28 Oct 2009 16:38:51 +0000 (17:38 +0100)
rrd_client.h in that pre-release checked for HAVE_CONFIG_H and would then try
to include rrd_config.h, which, obviously, is not available in collectd.

src/rrdcached.c

index 31c6352411fc4481deb584f37e9f07c59bf321e2..8dcb904c5edd91ed149543628b8611c7c72020c5 100644 (file)
@@ -24,6 +24,7 @@
 #include "common.h"
 #include "utils_rrdcreate.h"
 
+#undef HAVE_CONFIG_H
 #include <rrd_client.h>
 
 /*