Merge branch 'master' into ff/netlib
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Thu, 19 Aug 2010 13:03:22 +0000 (15:03 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Thu, 19 Aug 2010 13:06:00 +0000 (15:06 +0200)
Conflicts:
src/collectdctl.c

1  2 
configure.in
src/Makefile.am
src/collectd-nagios.c
src/collectdctl.c

diff --cc configure.in
Simple merge
diff --cc src/Makefile.am
Simple merge
  #include <string.h>
  #include <strings.h>
  #include <assert.h>
- #include <sys/socket.h>
- #include <sys/un.h>
+ #include <math.h>
  
 -#include "libcollectdclient/client.h"
 +#include "libcollectdclient/collectd/client.h"
  
- /*
-  * This is copied directly from collectd.h. Make changes there!
-  */
- #if NAN_STATIC_DEFAULT
- # include <math.h>
- /* #endif NAN_STATIC_DEFAULT*/
- #elif NAN_STATIC_ISOC
- # ifndef __USE_ISOC99
- #  define DISABLE_ISOC99 1
- #  define __USE_ISOC99 1
- # endif /* !defined(__USE_ISOC99) */
- # include <math.h>
- # if DISABLE_ISOC99
- #  undef DISABLE_ISOC99
- #  undef __USE_ISOC99
- # endif /* DISABLE_ISOC99 */
- /* #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))
- # endif /* !defined(isnan) */
- #endif /* NAN_ZERO_ZERO */
  #define RET_OKAY     0
  #define RET_WARNING  1
  #define RET_CRITICAL 2
  # include "config.h"
  #endif
  
- #include "libcollectdclient/collectd/client.h"
+ #ifndef _ISOC99_SOURCE
+ # define _ISOC99_SOURCE
+ #endif
  
- #include <assert.h>
+ #ifndef _POSIX_C_SOURCE
+ # define _POSIX_C_SOURCE 200112L
+ #endif
  
- #include <errno.h>
+ #ifndef _XOPEN_SOURCE
+ # define _XOPEN_SOURCE 600
+ #endif
  
- #include <getopt.h>
+ #include <stdlib.h>
+ #include <unistd.h>
+ #include <stdio.h>
+ #include <string.h>
+ #include <strings.h>
  
+ #include <assert.h>
+ #include <errno.h>
  #include <math.h>
  
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
 -#include "libcollectdclient/client.h"
++#include "libcollectdclient/collectd/client.h"
  
- #include <unistd.h>
  
  #define DEFAULT_SOCK LOCALSTATEDIR"/run/"PACKAGE_NAME"-unixsock"