From: Ruben Kerkhof Date: Sat, 13 Aug 2016 14:21:01 +0000 (+0200) Subject: collectctl: define LOCALSTATEDIR if not defined X-Git-Tag: collectd-5.6.0~44 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=44abd37ccfb63f8eb57112ddf3e37ece3aae3e65;p=collectd.git collectctl: define LOCALSTATEDIR if not defined --- diff --git a/src/collectdctl.c b/src/collectdctl.c index 31183b1c..5978b5e6 100644 --- a/src/collectdctl.c +++ b/src/collectdctl.c @@ -67,6 +67,10 @@ #include "libcollectdclient/collectd/client.h" +#ifndef LOCALSTATEDIR +# define LOCALSTATEDIR PREFIX "/var" +#endif + #define DEFAULT_SOCK LOCALSTATEDIR"/run/"PACKAGE_NAME"-unixsock" extern char *optarg;