diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2023-01-11 00:33:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-11 00:33:28 +0200 |
commit | 5a815ea424715fea934e7e2f37c98ecf3fb8f4ef (patch) | |
tree | f16ed63712840c2eadf0459f17ff42f46eedcd3c /daemon | |
parent | 368a26cfee6887ca0cb2301d93138f63b75e353a (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.c | 3 |
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; |