From 670e75ee7eecd7ce424aef8561b02f685decbd44 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 4 Oct 2024 09:26:07 +0200 Subject: [PATCH] netbsd: fix build --- src/unix/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/unix/core.c b/src/unix/core.c index 1935ba87..071716c3 100644 --- a/src/unix/core.c +++ b/src/unix/core.c @@ -1882,13 +1882,13 @@ int uv__search_path(const char* prog, char* buf, size_t* buflen) { #if defined(__linux__) || defined (__FreeBSD__) # define uv__cpu_count(cpuset) CPU_COUNT(cpuset) #elif defined(__NetBSD__) -static int uv__cpu_count(cpuset_t *cpuset) { +static int uv__cpu_count(cpuset_t* set) { int rc; cpuid_t i; rc = 0; for (i = 0;; i++) { - int r = cpuset_isset(cpu, set); + int r = cpuset_isset(i, set); if (r < 0) break; if (r)