projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cef3076
)
collectdctl: prefix may be undefined as well
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 13 Aug 2016 14:27:47 +0000
(16:27 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 13 Aug 2016 14:27:47 +0000
(16:27 +0200)
This won't happen in practice since ./configure sets it, but it isn't
set when running the code through lint.
src/collectdctl.c
patch
|
blob
|
history
diff --git
a/src/collectdctl.c
b/src/collectdctl.c
index
5978b5e
..
8c88479
100644
(file)
--- a/
src/collectdctl.c
+++ b/
src/collectdctl.c
@@
-67,6
+67,10
@@
#include "libcollectdclient/collectd/client.h"
+#ifndef PREFIX
+# define PREFIX "/opt/" PACKAGE_NAME
+#endif
+
#ifndef LOCALSTATEDIR
# define LOCALSTATEDIR PREFIX "/var"
#endif