Code

collectctl: define LOCALSTATEDIR if not defined
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 13 Aug 2016 14:21:01 +0000 (16:21 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 13 Aug 2016 14:21:01 +0000 (16:21 +0200)
src/collectdctl.c

index 31183b1c8b83b37963fb4b34052d400cffdc96f4..5978b5e6c769070ae5ffb3bb7d9893729933c1c7 100644 (file)
 
 #include "libcollectdclient/collectd/client.h"
 
+#ifndef LOCALSTATEDIR
+# define LOCALSTATEDIR PREFIX "/var"
+#endif
+
 #define DEFAULT_SOCK LOCALSTATEDIR"/run/"PACKAGE_NAME"-unixsock"
 
 extern char *optarg;