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.
This commit is contained in:
2026-06-02 12:05:42 -07:00
parent b6ef2fe065
commit 9351938b15
+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;