zig

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

commit 8a94971980001d29d7c8cdfe6ca25aa834552405 (tree)
parent 0a7801236cf3601ff20b3c1c16cd27c1d089157e
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Mon,  7 Feb 2022 12:19:43 -0700

std: fix i386-openbsd failing to build from source

closes #9705

Diffstat:
Mlib/std/c/openbsd.zig | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/lib/std/c/openbsd.zig b/lib/std/c/openbsd.zig @@ -982,7 +982,7 @@ comptime { std.debug.assert(@sizeOf(siginfo_t) == 136); } -const arch_bits = switch (builtin.cpu.arch) { +pub usingnamespace switch (builtin.cpu.arch) { .x86_64 => struct { pub const ucontext_t = extern struct { sc_rdi: c_long, @@ -1012,7 +1012,7 @@ const arch_bits = switch (builtin.cpu.arch) { sc_rsp: c_long, sc_ss: c_long, - sc_fpstate: arch_bits.fxsave64, + sc_fpstate: fxsave64, __sc_unused: c_int, sc_mask: c_int, sc_cookie: c_long, @@ -1035,8 +1035,6 @@ const arch_bits = switch (builtin.cpu.arch) { }, else => struct {}, }; -pub const ucontext_t = arch_bits.ucontext_t; -pub const fxsave64 = arch_bits.fxsave64; pub const sigset_t = c_uint; pub const empty_sigset: sigset_t = 0;