From: Florian Forster Date: Thu, 19 Aug 2010 13:03:22 +0000 (+0200) Subject: Merge branch 'master' into ff/netlib X-Git-Tag: collectd-5.2.0~18^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6624c959628fa1188f8cfa4789da1eccccc5f5e4;p=collectd.git Merge branch 'master' into ff/netlib Conflicts: src/collectdctl.c --- 6624c959628fa1188f8cfa4789da1eccccc5f5e4 diff --cc src/collectd-nagios.c index b805c762,b3c1855a..2d59ea77 --- a/src/collectd-nagios.c +++ b/src/collectd-nagios.c @@@ -34,40 -46,10 +46,10 @@@ #include #include #include - - #include - #include + #include -#include "libcollectdclient/client.h" +#include "libcollectdclient/collectd/client.h" - /* - * This is copied directly from collectd.h. Make changes there! - */ - #if NAN_STATIC_DEFAULT - # include - /* #endif NAN_STATIC_DEFAULT*/ - #elif NAN_STATIC_ISOC - # ifndef __USE_ISOC99 - # define DISABLE_ISOC99 1 - # define __USE_ISOC99 1 - # endif /* !defined(__USE_ISOC99) */ - # include - # if DISABLE_ISOC99 - # undef DISABLE_ISOC99 - # undef __USE_ISOC99 - # endif /* DISABLE_ISOC99 */ - /* #endif NAN_STATIC_ISOC */ - #elif NAN_ZERO_ZERO - # include - # ifdef NAN - # undef NAN - # endif - # define NAN (0.0 / 0.0) - # ifndef isnan - # define isnan(f) ((f) != (f)) - # endif /* !defined(isnan) */ - #endif /* NAN_ZERO_ZERO */ - #define RET_OKAY 0 #define RET_WARNING 1 #define RET_CRITICAL 2 diff --cc src/collectdctl.c index 81ed7b19,e1091cc6..f16a70dd --- a/src/collectdctl.c +++ b/src/collectdctl.c @@@ -25,21 -25,30 +25,30 @@@ # include "config.h" #endif - #include "libcollectdclient/collectd/client.h" + #ifndef _ISOC99_SOURCE + # define _ISOC99_SOURCE + #endif - #include + #ifndef _POSIX_C_SOURCE + # define _POSIX_C_SOURCE 200112L + #endif - #include + #ifndef _XOPEN_SOURCE + # define _XOPEN_SOURCE 600 + #endif - #include + #include + #include + #include + #include + #include + #include + #include #include - #include - #include - #include -#include "libcollectdclient/client.h" ++#include "libcollectdclient/collectd/client.h" - #include #define DEFAULT_SOCK LOCALSTATEDIR"/run/"PACKAGE_NAME"-unixsock"