1
0
mirror of https://github.com/libuv/libuv synced 2025-03-28 21:13:16 +00:00

netbsd: fix build

This commit is contained in:
Adam 2024-10-04 09:26:07 +02:00 committed by GitHub
parent f55efb2f38
commit 670e75ee7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)