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:24:19-07:00
log8e10c80c5fc8ffcd3ebffd00848e4b2daac9d555
treeaf9d66690679e4eceb2513ef8cab3770ab050558
parenta8bd36c3d27f0829a1fd9b58b76175e7306a717b

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;