mirror of
https://git.freebsd.org/ports.git
synced 2025-05-05 16:07:38 -04:00
- The port now uses the combined patch set for OpenBSD and FreeBSD maintained by Robert Nagy. - Fix build on i386 again. Obtained from: Robert Nagy <robert@openbsd.org> Security: https://vuxml.freebsd.org/freebsd/e12432af-8e73-11ec-8bc4-3065ec8fd3ec.html Security: https://vuxml.freebsd.org/freebsd/e852f43c-846e-11ec-b043-3065ec8fd3ec.html
11 lines
378 B
C++
11 lines
378 B
C++
--- v8/src/base/sys-info.cc.orig 2022-02-07 13:39:41 UTC
|
|
+++ v8/src/base/sys-info.cc
|
|
@@ -38,7 +38,7 @@ namespace base {
|
|
// static
|
|
int SysInfo::NumberOfProcessors() {
|
|
#if V8_OS_OPENBSD
|
|
- int mib[2] = {CTL_HW, HW_NCPU};
|
|
+ int mib[2] = {CTL_HW, HW_NCPUONLINE};
|
|
int ncpu = 0;
|
|
size_t len = sizeof(ncpu);
|
|
if (sysctl(mib, arraysize(mib), &ncpu, &len, nullptr, 0) != 0) {
|