Skip to content

Commit 6ad8d46

Browse files
committed
Use sysconf for activeProcessorCount.
This is what Dispatch does in some places for OpenBSD anyway, so do likewise here.
1 parent 35b9684 commit 6ad8d46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/FoundationEssentials/ProcessInfo/ProcessInfo.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ extension _ProcessInfo {
469469
return 0
470470
}
471471
return Int(count)
472-
#elseif os(Linux) || os(FreeBSD) || canImport(Android)
472+
#elseif os(Linux) || os(FreeBSD) || os(OpenBSD) || canImport(Android)
473473
#if os(Linux)
474474
if let fsCount = Self.fsCoreCount() {
475475
return fsCount

0 commit comments

Comments
 (0)