authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-02-07 12:19:43-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-02-07 12:20:25-07:00
log8a94971980001d29d7c8cdfe6ca25aa834552405
tree2a850f1c89264292a848313a020a0991a611d0fa
parent0a7801236cf3601ff20b3c1c16cd27c1d089157e

std: fix i386-openbsd failing to build from source

closes #9705

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

lib/std/c/openbsd.zig+2-4
......@@ -982,7 +982,7 @@ comptime {
982982 std.debug.assert(@sizeOf(siginfo_t) == 136);
983983}
984984
985const arch_bits = switch (builtin.cpu.arch) {
985pub usingnamespace switch (builtin.cpu.arch) {
986986 .x86_64 => struct {
987987 pub const ucontext_t = extern struct {
988988 sc_rdi: c_long,
......@@ -1012,7 +1012,7 @@ const arch_bits = switch (builtin.cpu.arch) {
10121012 sc_rsp: c_long,
10131013 sc_ss: c_long,
10141014
1015 sc_fpstate: arch_bits.fxsave64,
1015 sc_fpstate: fxsave64,
10161016 __sc_unused: c_int,
10171017 sc_mask: c_int,
10181018 sc_cookie: c_long,
......@@ -1035,8 +1035,6 @@ const arch_bits = switch (builtin.cpu.arch) {
10351035 },
10361036 else => struct {},
10371037};
1038pub const ucontext_t = arch_bits.ucontext_t;
1039pub const fxsave64 = arch_bits.fxsave64;
10401038
10411039pub const sigset_t = c_uint;
10421040pub const empty_sigset: sigset_t = 0;