projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/common.[ch]: Implement "parse_identifier_vl".
[collectd.git]
/
src
/
bind.c
diff --git
a/src/bind.c
b/src/bind.c
index
6388774
..
47215c7
100644
(file)
--- a/
src/bind.c
+++ b/
src/bind.c
@@
-21,7
+21,11
@@
* Florian Forster <octo at verplant.org>
**/
* Florian Forster <octo at verplant.org>
**/
-#define _XOPEN_SOURCE 600 /* glibc2 needs this for strptime */
+#include "config.h"
+
+#ifndef _XOPEN_SOURCE
+# define _XOPEN_SOURCE 600 /* glibc2 needs this for strptime */
+#endif
#include "collectd.h"
#include "common.h"
#include "collectd.h"
#include "common.h"
@@
-237,7
+241,7
@@
static void submit (time_t ts, const char *plugin_instance, /* {{{ */
vl.values = values;
vl.values_len = 1;
vl.values = values;
vl.values_len = 1;
- vl.time =
ts
;
+ vl.time =
TIME_T_TO_CDTIME_T (ts)
;
sstrncpy(vl.host, hostname_g, sizeof(vl.host));
sstrncpy(vl.plugin, "bind", sizeof(vl.plugin));
if (plugin_instance) {
sstrncpy(vl.host, hostname_g, sizeof(vl.host));
sstrncpy(vl.plugin, "bind", sizeof(vl.plugin));
if (plugin_instance) {