aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Thread.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-08-31 19:27:54 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-09-01 17:54:07 -0700
commit0932b0d9b309e654951d7c7f94dae823d7cdd154 (patch)
treea2a73a7937ed3298f714d34c9158ae3a64c630f1 /lib/std/Thread.zig
parent1a492d5156df400d33a00c5717e049e17f514153 (diff)
downloadzig-0932b0d9b309e654951d7c7f94dae823d7cdd154.tar.gz
zig-0932b0d9b309e654951d7c7f94dae823d7cdd154.zip
std.os reorg: regression fixes to stack_t, and std.Thread
Diffstat (limited to 'lib/std/Thread.zig')
-rw-r--r--lib/std/Thread.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Thread.zig b/lib/std/Thread.zig
index ac38e5b4c6..1fe8ca89d2 100644
--- a/lib/std/Thread.zig
+++ b/lib/std/Thread.zig
@@ -558,7 +558,7 @@ const PosixThreadImpl = struct {
.openbsd => {
var count: c_int = undefined;
var count_size: usize = @sizeOf(c_int);
- const mib = [_]c_int{ os.CTL.HW, os.HW_NCPUONLINE };
+ const mib = [_]c_int{ os.CTL.HW, os.system.HW_NCPUONLINE };
os.sysctl(&mib, &count, &count_size, null, 0) catch |err| switch (err) {
error.NameTooLong, error.UnknownName => unreachable,
else => |e| return e,