[rrd-developers] [PATCH] rrdcached: pull in rrd_config.h so we can use its defines

kevin brintnall kbrint at rufus.net
Thu Nov 6 22:40:10 CET 2008


... particularly HAVE_VSNPRINTF
---
 src/rrd_daemon.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c
index 7201c52..c6211a6 100644
--- a/src/rrd_daemon.c
+++ b/src/rrd_daemon.c
@@ -62,7 +62,16 @@
 /*
  * Now for some includes..
  */
-#include "rrd.h" /* {{{ */
+/* {{{ */
+#if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__) && !defined(HAVE_CONFIG_H)
+#include "../win32/config.h"
+#else
+#ifdef HAVE_CONFIG_H
+#include "../rrd_config.h"
+#endif
+#endif
+
+#include "rrd.h"
 #include "rrd_client.h"
 
 #include <stdlib.h>
-- 
1.6.0.3



More information about the rrd-developers mailing list