diff --git a/src/collectdctl.c b/src/collectdctl.c
index 31183b1c8b83b37963fb4b34052d400cffdc96f4..8c884796403edfa9c6d69aec38421d6dbad359e7 100644 (file)
--- a/src/collectdctl.c
+++ b/src/collectdctl.c
#include "libcollectdclient/collectd/client.h"
+#ifndef PREFIX
+# define PREFIX "/opt/" PACKAGE_NAME
+#endif
+
+#ifndef LOCALSTATEDIR
+# define LOCALSTATEDIR PREFIX "/var"
+#endif
+
#define DEFAULT_SOCK LOCALSTATEDIR"/run/"PACKAGE_NAME"-unixsock"
extern char *optarg;