From 9351938b15d154474b6c0f699fcddb8066a40b79 Mon Sep 17 00:00:00 2001 From: "Greg A. Woods" Date: Tue, 2 Jun 2026 12:05:42 -0700 Subject: [PATCH] hbc_mini.c: make it compile on NetBSD Use the public "struct uvmexp_sysctl" instead of "struct uvmexp". The numbers from the memory_monitor are wonky, but it builds and runs. --- scripts/c/hbc_mini.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/c/hbc_mini.c b/scripts/c/hbc_mini.c index 23b9eb6..92a9926 100644 --- a/scripts/c/hbc_mini.c +++ b/scripts/c/hbc_mini.c @@ -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;