X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fdaemon%2Fcollectd.h;h=500bba2658ed62831603ffad5960123fbc19086d;hp=80b753c8a83442b3e278858a8cb54528bf9868d1;hb=1737d01e6d25487852d0da2e45088e11115e52a9;hpb=0a63e4493d92f7d739a1849bc65d4e971b047004 diff --git a/src/daemon/collectd.h b/src/daemon/collectd.h index 80b753c8..500bba26 100644 --- a/src/daemon/collectd.h +++ b/src/daemon/collectd.h @@ -95,6 +95,9 @@ # include # endif #endif +#if HAVE_SYS_SOCKET_H +# include +#endif #if HAVE_ASSERT_H # include @@ -268,7 +271,7 @@ typedef int _Bool; #endif #ifndef COLLECTD_USERAGENT - # define COLLECTD_USERAGENT PACKAGE_NAME"/"PACKAGE_VERSION + # define COLLECTD_USERAGENT PACKAGE_NAME "/" PACKAGE_VERSION #endif /* Only enable __attribute__() for compilers known to support it. */ @@ -291,7 +294,7 @@ typedef int _Bool; # pragma GCC poison strcpy strcat strtok #endif -/* +/* * Special hack for the perl plugin: Because the later included perl.h defines * a macro which is never used, but contains `sprintf', we cannot poison that * identifies just yet. The parl plugin will do that itself once perl.h is @@ -313,7 +316,6 @@ typedef uint64_t cdtime_t; extern char hostname_g[]; extern cdtime_t interval_g; -extern int pidfile_from_cli; extern int timeout_g; #endif /* COLLECTD_H */