From: Ruben Kerkhof Date: Sat, 13 Aug 2016 14:34:37 +0000 (+0200) Subject: collectdmon: define PREFIX and LOCALSTATEDIR X-Git-Tag: collectd-5.6.0~40 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;ds=inline;h=5fabf398618be4e98da6f5abddb1aead86afbeb0;p=collectd.git collectdmon: define PREFIX and LOCALSTATEDIR Not an issue in practice, but this helps when running the code through lint. --- diff --git a/src/collectdmon.c b/src/collectdmon.c index 13304f2a..61daa58c 100644 --- a/src/collectdmon.c +++ b/src/collectdmon.c @@ -55,6 +55,14 @@ #include +#ifndef PREFIX +# define PREFIX "/opt/" PACKAGE_NAME +#endif + +#ifndef LOCALSTATEDIR +# define LOCALSTATEDIR PREFIX "/var" +#endif + #ifndef COLLECTDMON_PIDFILE # define COLLECTDMON_PIDFILE LOCALSTATEDIR"/run/collectdmon.pid" #endif /* ! COLLECTDMON_PIDFILE */