From 5fabf398618be4e98da6f5abddb1aead86afbeb0 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 13 Aug 2016 16:34:37 +0200 Subject: [PATCH] collectdmon: define PREFIX and LOCALSTATEDIR Not an issue in practice, but this helps when running the code through lint. --- src/collectdmon.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 */ -- 2.11.0