mirror of
https://github.com/ziglang/zig.git
synced 2025-12-21 13:43:10 +00:00
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:
parent
933ba935c5
commit
75df7e502c
@ -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.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user