zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 75df7e502c05e7e6a9b00a5a28854ae4a1aa8ea6 (tree)
parent 933ba935c5ff85668c82606ba4ff2531c00b2e36
Author: Linus Groh <mail@linusgroh.de>
Date:   Sun,  9 Feb 2025 15:05:24 +0000

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

Diffstat:
Mlib/std/c.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/c.zig b/lib/std/c.zig @@ -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.