authorgravatar for semarie@online.frSébastien Marie <semarie@online.fr> 2021-05-19 06:26:52+00:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2021-05-19 10:55:21+02:00
log28a89b9ebc471fa65815c8061dce979d25f3e499
tree26263e709ef09a044e5d8182d875345ced81e5dc
parent22f51f2f7dfa7ca985648c414b25d5842d0c2732

openbsd: convert builtin.arch to builtin.target.cpu.arch


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

lib/std/os/bits/openbsd.zig+2-2
......@@ -808,7 +808,7 @@ comptime {
808808 std.debug.assert(@sizeOf(siginfo_t) == 136);
809809}
810810
811pub usingnamespace switch (builtin.arch) {
811pub usingnamespace switch (builtin.target.cpu.arch) {
812812 .x86_64 => struct {
813813 pub const ucontext_t = extern struct {
814814 sc_rdi: c_long,
......@@ -985,7 +985,7 @@ pub const EPROTO = 95; // Protocol error
985985
986986pub const ELAST = 95; // Must equal largest errno
987987
988const _MAX_PAGE_SHIFT = switch (builtin.arch) {
988const _MAX_PAGE_SHIFT = switch (builtin.target.cpu.arch) {
989989 .i386 => 12,
990990 .sparcv9 => 13,
991991};