X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_daemon.c;h=c6211a6f97f9190058a1b6391c435d266ee47708;hp=bee21a2d7e6e248cb49f36b9983694892caed058;hb=7da79af65016ae22b7d46abead4b2717ae722937;hpb=5d074b0e4c13e9345e442aec5cf02b9acd198738 diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c index bee21a2..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 @@ -1450,7 +1459,7 @@ static int handle_request_update (listen_socket_t *sock, /* {{{ */ wipe_ci_values(ci, now); ci->flags = CI_FLAGS_IN_TREE; - ci->flushed = PTHREAD_COND_INITIALIZER; + pthread_cond_init(&ci->flushed, NULL); pthread_mutex_lock(&cache_lock); g_tree_insert (cache_tree, (void *) ci->file, (void *) ci);