#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))