Fixed compile error in CENTOS 6 (#10110)
Stelios Fragkakis committed
Oct 21, 2020 at 15:41 UTC
ab0ffcebf802803d1e88f6a5e47a314c292b45e3
2 files changed
+7
-6
database/rrd.h
+7
@@ -18,6 +18,7 @@ typedef struct context_param CONTEXT_PARAM;
18
// forward declarations
19
struct rrddim_volatile;
20
struct rrdset_volatile;
21
+struct context_param;
22
#ifdef ENABLE_DBENGINE
23
struct rrdeng_page_descr;
24
struct rrdengine_instance;
@@ -33,6 +34,12 @@ struct pg_cache_page_index;
34
#include "rrdcalctemplate.h"
35
#include "../streaming/rrdpush.h"
36
37
+struct context_param {
38
+ RRDDIM *rd;
39
+ time_t first_entry_t;
40
+ time_t last_entry_t;
41
+};
42
+
43
#define META_CHART_UPDATED 1
44
#define META_PLUGIN_UPDATED 2
45
#define META_MODULE_UPDATED 4
web/api/formatters/rrd2json.h
-6
@@ -53,12 +53,6 @@
53
extern void rrd_stats_api_v1_chart(RRDSET *st, BUFFER *wb);
54
extern void rrdr_buffer_print_format(BUFFER *wb, uint32_t format);
55
56
-typedef struct context_param {
57
- RRDDIM *rd;
58
- time_t first_entry_t;
59
- time_t last_entry_t;
60
-} CONTEXT_PARAM;
61
-
56
extern int rrdset2anything_api_v1(
57
RRDSET *st
58
, BUFFER *wb