std.c: Fix definition of stack_t on OpenBSD

The size field is not supposed to be signed.
See: https://man.openbsd.org/sigaltstack.2
This commit is contained in:
Linus Groh 2025-02-09 15:05:24 +00:00 committed by Alex Rønne Petersen
parent 933ba935c5
commit 75df7e502c

View File

@ -5998,7 +5998,7 @@ pub const IFNAMESIZE = switch (native_os) {
pub const stack_t = switch (native_os) {
.linux => linux.stack_t,
.emscripten => emscripten.stack_t,
.freebsd => extern struct {
.freebsd, .openbsd => extern struct {
/// Signal stack base.
sp: *anyopaque,
/// Signal stack length.