summaryrefslogtreecommitdiffstats
path: root/libnetdata/libnetdata.h
diff options
context:
space:
mode:
authorvkalintiris <vasilis@netdata.cloud>2022-01-18 10:30:36 +0200
committerGitHub <noreply@github.com>2022-01-18 10:30:36 +0200
commite91d1110e5998ede7bc8aecf5309c28176361acf (patch)
treeb785a25971d62a4cd360d24a66679a0f389d6b5d /libnetdata/libnetdata.h
parent63afbd76ef39ca836233354218e95a17ae67270e (diff)
Do not use dbengine headers when dbengine is disabled. (#11967)
Prior to this commit both daemon/commands.c and spawn/spawn.c used to include database/engine/rrdenginelib.h, ie. a header file that is available only when enabling the dbengine feature.
Diffstat (limited to 'libnetdata/libnetdata.h')
-rw-r--r--libnetdata/libnetdata.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libnetdata/libnetdata.h b/libnetdata/libnetdata.h
index b49ab21a08..432c74f461 100644
--- a/libnetdata/libnetdata.h
+++ b/libnetdata/libnetdata.h
@@ -303,9 +303,14 @@ extern char *find_and_replace(const char *src, const char *find, const char *rep
#define KILOBITS_IN_A_MEGABIT 1000
/* misc. */
+
#define UNUSED(x) (void)(x)
#define error_report(x, args...) do { errno = 0; error(x, ##args); } while(0)
+// Taken from linux kernel
+#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))
+
+
extern void netdata_cleanup_and_exit(int ret) NORETURN;
extern void send_statistics(const char *action, const char *action_result, const char *action_data);
extern char *netdata_configured_host_prefix;
@@ -318,6 +323,7 @@ extern char *netdata_configured_host_prefix;
#include "avl/avl.h"
#include "inlined.h"
#include "clocks/clocks.h"
+#include "completion/completion.h"
#include "popen/popen.h"
#include "simple_pattern/simple_pattern.h"
#ifdef ENABLE_HTTPS