bsd: followup to std.posix extraction from std.os

netbsd fix:
- `Futex.zig:542:56: error: expected error union type, found 'c_int'`

openbsd fix:
- `emutls.zig:10:21: error: root struct of file 'os' has no member named 'abort'`
- `Thread.zig:627:22: error: expected 6 argument(s), found 5`
This commit is contained in:
Michael Dusan
2024-03-20 11:45:41 -04:00
committed by Andrew Kelley
parent 5005c6243a
commit e4ed63f138
3 changed files with 3 additions and 3 deletions

View File

@@ -624,7 +624,7 @@ const PosixThreadImpl = struct {
var count: c_int = undefined;
var count_size: usize = @sizeOf(c_int);
const mib = [_]c_int{ std.c.CTL.HW, std.c.HW.NCPUONLINE };
std.c.sysctl(&mib, &count, &count_size, null, 0) catch |err| switch (err) {
posix.sysctl(&mib, &count, &count_size, null, 0) catch |err| switch (err) {
error.NameTooLong, error.UnknownName => unreachable,
else => |e| return e,
};