From 44abd37ccfb63f8eb57112ddf3e37ece3aae3e65 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 13 Aug 2016 16:21:01 +0200 Subject: [PATCH] collectctl: define LOCALSTATEDIR if not defined --- src/collectdctl.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.30.2