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 authored and Alex Rønne Petersen committed 2025-02-09 22:17:35 +01:00
1 parent 933ba935c5
commit 75df7e502c
1 file changed
+1 -1
+1 -1
View File
@@ -5998,7 +5998,7 @@ pub const IFNAMESIZE = switch (native_os) {
pub const stack_t = switch (native_os) { pub const stack_t = switch (native_os) {
.linux => linux.stack_t, .linux => linux.stack_t,
.emscripten => emscripten.stack_t, .emscripten => emscripten.stack_t,
.freebsd => extern struct { .freebsd, .openbsd => extern struct {
/// Signal stack base. /// Signal stack base.
sp: *anyopaque, sp: *anyopaque,
/// Signal stack length. /// Signal stack length.