collectctl: define LOCALSTATEDIR if not defined
[collectd.git] / src / collectdctl.c
index 31183b1..5978b5e 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;