authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-05-18 10:49:33-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-05-18 10:49:33-07:00
log4187008b5ed3118d9cf58dbdff8bad2974a7910d
tree6c008918a7fc4c5edf95594c4fa2de0ebe99b6c7
parent93dbf30dcf04ba7b0b303ef9a2e5343d0abf1d9c

std: update freebsd bits to new builtin


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

lib/std/os/bits/freebsd.zig+3-3
......@@ -4,7 +4,7 @@
44// The MIT license requires this copyright notice to be included in all copies
55// and substantial portions of the software.
66const std = @import("../../std.zig");
7const builtin = std.builtin;
7const builtin = @import("builtin");
88const maxInt = std.math.maxInt;
99
1010pub const blksize_t = i32;
......@@ -842,7 +842,7 @@ pub const sigset_t = extern struct {
842842
843843pub const empty_sigset = sigset_t{ .__bits = [_]u32{0} ** _SIG_WORDS };
844844
845pub usingnamespace switch (builtin.arch) {
845pub usingnamespace switch (builtin.target.cpu.arch) {
846846 .x86_64 => struct {
847847 pub const ucontext_t = extern struct {
848848 sigmask: sigset_t,
......@@ -1011,7 +1011,7 @@ pub const EOWNERDEAD = 96; // Previous owner died
10111011
10121012pub const ELAST = 96; // Must be equal largest errno
10131013
1014pub const MINSIGSTKSZ = switch (builtin.arch) {
1014pub const MINSIGSTKSZ = switch (builtin.target.cpu.arch) {
10151015 .i386, .x86_64 => 2048,
10161016 .arm, .aarch64 => 4096,
10171017 else => @compileError("MINSIGSTKSZ not defined for this architecture"),