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 /libnetdata/worker_utilization | |
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 'libnetdata/worker_utilization')
-rw-r--r-- | libnetdata/worker_utilization/worker_utilization.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libnetdata/worker_utilization/worker_utilization.c b/libnetdata/worker_utilization/worker_utilization.c index afaff209b5..b0dcf034dd 100644 --- a/libnetdata/worker_utilization/worker_utilization.c +++ b/libnetdata/worker_utilization/worker_utilization.c @@ -83,7 +83,7 @@ void worker_register(const char *name) { struct workers_workname *workname = *PValue; if(!workname) { workname = mallocz(sizeof(struct workers_workname)); - workname->spinlock = NETDATA_SPINLOCK_INITIALIZER; + netdata_spinlock_init(&workname->spinlock); workname->base = NULL; *PValue = workname; } |