authorgravatar for mail@linusgroh.deLinus Groh <mail@linusgroh.de> 2025-02-09 15:05:24+00:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-02-09 22:17:35+01:00
log75df7e502c05e7e6a9b00a5a28854ae4a1aa8ea6
tree44cfefaa35e7ef390810ea524033e2886466c847
parent933ba935c5ff85668c82606ba4ff2531c00b2e36

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

1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/c.zig+1-1
...@@ -5998,7 +5998,7 @@ pub const IFNAMESIZE = switch (native_os) {...@@ -5998,7 +5998,7 @@ pub const IFNAMESIZE = switch (native_os) {
5998pub const stack_t = switch (native_os) {5998pub const stack_t = switch (native_os) {
5999 .linux => linux.stack_t,5999 .linux => linux.stack_t,
6000 .emscripten => emscripten.stack_t,6000 .emscripten => emscripten.stack_t,
6001 .freebsd => extern struct {6001 .freebsd, .openbsd => extern struct {
6002 /// Signal stack base.6002 /// Signal stack base.
6003 sp: *anyopaque,6003 sp: *anyopaque,
6004 /// Signal stack length.6004 /// Signal stack length.