X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectdctl.c;h=8c884796403edfa9c6d69aec38421d6dbad359e7;hb=a349e06f0c4e2c853eced8a2621f52ee712b6e0c;hp=31183b1c8b83b37963fb4b34052d400cffdc96f4;hpb=f0d468892e1c173b226f739be48291981473b4fb;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;