hbc_mini.c: make it compile on NetBSD #1

Merged
andreas merged 2 commits from woods/heartbeat:master into master 2026-06-03 12:05:29 -04:00
Showing only changes of commit 9351938b15 - Show all commits
+1 -1
View File
@@ -896,7 +896,7 @@ static void plugin_memory_monitor(conn_t *c, const config_t *cfg) {
static void plugin_memory_monitor(conn_t *c, const config_t *cfg) {
(void)cfg;
struct uvmexp uvm;
struct uvmexp_sysctl uvm;
size_t len = sizeof(uvm);
int mib[2] = {CTL_VM, VM_UVMEXP};
if (sysctl(mib, 2, &uvm, &len, NULL, 0) != 0) return;