projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bind plugin: Fixes for FreeBSD 7.1
[collectd.git]
/
src
/
bind.c
diff --git
a/src/bind.c
b/src/bind.c
index
587403d
..
44efcfd
100644
(file)
--- a/
src/bind.c
+++ b/
src/bind.c
@@
-21,12
+21,19
@@
* Florian Forster <octo at verplant.org>
**/
* Florian Forster <octo at verplant.org>
**/
+#define _XOPEN_SOURCE 600 /* glibc2 needs this for strptime */
#include "collectd.h"
#include "common.h"
#include "plugin.h"
#include "configfile.h"
#include "collectd.h"
#include "common.h"
#include "plugin.h"
#include "configfile.h"
+/* Some versions of libcurl don't include this themselves and then don't have
+ * fd_set available. */
+#if HAVE_SYS_SELECT_H
+# include <sys/select.h>
+#endif
+
#include <curl/curl.h>
#include <libxml/parser.h>
#include <libxml/xpath.h>
#include <curl/curl.h>
#include <libxml/parser.h>
#include <libxml/xpath.h>
@@
-459,7
+466,7
@@
static int bind_xml_read_timestamp (const char *xpath_expression, /* {{{ */
return (-1);
}
return (-1);
}
- *ret_value =
timegm
(&tm);
+ *ret_value =
mktime
(&tm);
xmlXPathFreeObject (xpathObj);
return (0);
xmlXPathFreeObject (xpathObj);
return (0);