diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-08-31 19:27:54 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-09-01 17:54:07 -0700 |
| commit | 0932b0d9b309e654951d7c7f94dae823d7cdd154 (patch) | |
| tree | a2a73a7937ed3298f714d34c9158ae3a64c630f1 /lib/std/Thread.zig | |
| parent | 1a492d5156df400d33a00c5717e049e17f514153 (diff) | |
| download | zig-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.zig | 2 |
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, |
