From 8e10c80c5fc8ffcd3ebffd00848e4b2daac9d555 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 7 Feb 2022 12:19:43 -0700 Subject: [PATCH] std: fix i386-openbsd failing to build from source closes #9705 --- lib/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 index d2a36fc5df..6ba11e8e5a 100644 --- 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;