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 {...@@ -982,7 +982,7 @@ comptime {
982 std.debug.assert(@sizeOf(siginfo_t) == 136);982 std.debug.assert(@sizeOf(siginfo_t) == 136);
983}983}
984984
985const arch_bits = switch (builtin.cpu.arch) {985pub usingnamespace switch (builtin.cpu.arch) {
986 .x86_64 => struct {986 .x86_64 => struct {
987 pub const ucontext_t = extern struct {987 pub const ucontext_t = extern struct {
988 sc_rdi: c_long,988 sc_rdi: c_long,
...@@ -1012,7 +1012,7 @@ const arch_bits = switch (builtin.cpu.arch) {...@@ -1012,7 +1012,7 @@ const arch_bits = switch (builtin.cpu.arch) {
1012 sc_rsp: c_long,1012 sc_rsp: c_long,
1013 sc_ss: c_long,1013 sc_ss: c_long,
10141014
1015 sc_fpstate: arch_bits.fxsave64,1015 sc_fpstate: fxsave64,
1016 __sc_unused: c_int,1016 __sc_unused: c_int,
1017 sc_mask: c_int,1017 sc_mask: c_int,
1018 sc_cookie: c_long,1018 sc_cookie: c_long,
...@@ -1035,8 +1035,6 @@ const arch_bits = switch (builtin.cpu.arch) {...@@ -1035,8 +1035,6 @@ const arch_bits = switch (builtin.cpu.arch) {
1035 },1035 },
1036 else => struct {},1036 else => struct {},
1037};1037};
1038pub const ucontext_t = arch_bits.ucontext_t;
1039pub const fxsave64 = arch_bits.fxsave64;
10401038
1041pub const sigset_t = c_uint;1039pub const sigset_t = c_uint;
1042pub const empty_sigset: sigset_t = 0;1040pub const empty_sigset: sigset_t = 0;