summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@netdata.cloud>2023-01-11 00:33:28 +0200
committerGitHub <noreply@github.com>2023-01-11 00:33:28 +0200
commit5a815ea424715fea934e7e2f37c98ecf3fb8f4ef (patch)
treef16ed63712840c2eadf0459f17ff42f46eedcd3c /daemon
parent368a26cfee6887ca0cb2301d93138f63b75e353a (diff)
pre gcc v5 support and allow building without dbengine (#14239)
* allow spinlock to be compiled with gcc 4.9 * allow compiling without dbengine
Diffstat (limited to 'daemon')
-rw-r--r--daemon/global_statistics.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/daemon/global_statistics.c b/daemon/global_statistics.c
index 15f3a5275f..3bd3822cca 100644
--- a/daemon/global_statistics.c
+++ b/daemon/global_statistics.c
@@ -996,6 +996,8 @@ static void sqlite3_statistics_charts(void) {
// ----------------------------------------------------------------
}
+#ifdef ENABLE_DBENGINE
+
struct dbengine2_cache_pointers {
RRDSET *st_cache_hit_ratio;
RRDDIM *rd_hit_ratio_closest;
@@ -2323,6 +2325,7 @@ static void dbengine2_statistics_charts(void) {
}
}
}
+#endif // ENABLE_DBENGINE
static void update_strings_charts() {
static RRDSET *st_ops = NULL, *st_entries = NULL, *st_mem = NULL;