projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
532fb65
)
collectctl: define LOCALSTATEDIR if not defined
author
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 13 Aug 2016 14:21:01 +0000
(16:21 +0200)
committer
Ruben Kerkhof
<ruben@rubenkerkhof.com>
Sat, 13 Aug 2016 14:21:01 +0000
(16:21 +0200)
src/collectdctl.c
patch
|
blob
|
history
diff --git
a/src/collectdctl.c
b/src/collectdctl.c
index
31183b1
..
5978b5e
100644
(file)
--- a/
src/collectdctl.c
+++ b/
src/collectdctl.c
@@
-67,6
+67,10
@@
#include "libcollectdclient/collectd/client.h"
+#ifndef LOCALSTATEDIR
+# define LOCALSTATEDIR PREFIX "/var"
+#endif
+
#define DEFAULT_SOCK LOCALSTATEDIR"/run/"PACKAGE_NAME"-unixsock"
extern char *optarg;