diff --git a/src/collectd.h b/src/collectd.h
index e1ce97c1bf17cf13f2272dd56c45b306bd93d545..9951d8a91013d929bc831a4e40ad49b9bce08893 100644 (file)
--- a/src/collectd.h
+++ b/src/collectd.h
#define COLLECTD_H
#if HAVE_CONFIG_H
-# include <config.h>
+# include "config.h"
#endif
#include <stdio.h>
/* #endif NAN_STATIC_ISOC */
#elif NAN_ZERO_ZERO
# include <math.h>
+# ifdef NAN
+# undef NAN
+# endif
# define NAN (0.0 / 0.0)
# ifndef isnan
# define isnan(f) ((f) != (f))
# include <kstat.h>
#endif
-#if HAVE_RRD_H
-# include <rrd.h>
-#endif
#if HAVE_PTH_H
# include <pth.h>
#endif
#define CONFIGFILE SYSCONFDIR"/collectd.conf"
#endif
+#ifndef LOCALSTATEDIR
+#define LOCALSTATEDIR PREFIX "/var"
+#endif
+
#ifndef PKGLOCALSTATEDIR
#define PKGLOCALSTATEDIR PREFIX "/var/lib/" PACKAGE_NAME
#endif
#define PLUGINDIR PREFIX "/lib/" PACKAGE_NAME
#endif
-#define MODE_SERVER 0x01
-#define MODE_CLIENT 0x02
-#define MODE_LOCAL 0x04
-#define MODE_LOG 0x08
-
#ifndef COLLECTD_GRP_NAME
# define COLLECTD_GRP_NAME "collectd"
#endif