X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fcollectdctl.c;h=8c884796403edfa9c6d69aec38421d6dbad359e7;hb=c4bce475033d055cf5370b33fc6b8675fad5667b;hp=31183b1c8b83b37963fb4b34052d400cffdc96f4;hpb=f7e7130af45d2320d5bf1a4c7cf6f553f213f1fc;p=collectd.git diff --git a/src/collectdctl.c b/src/collectdctl.c index 31183b1c..8c884796 100644 --- a/src/collectdctl.c +++ b/src/collectdctl.c @@ -67,6 +67,14 @@ #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;