diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-05-18 10:49:33 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-05-18 10:49:33 -0700 |
| commit | 4187008b5ed3118d9cf58dbdff8bad2974a7910d (patch) | |
| tree | 6c008918a7fc4c5edf95594c4fa2de0ebe99b6c7 /lib/std/os | |
| parent | 93dbf30dcf04ba7b0b303ef9a2e5343d0abf1d9c (diff) | |
| download | zig-4187008b5ed3118d9cf58dbdff8bad2974a7910d.tar.gz zig-4187008b5ed3118d9cf58dbdff8bad2974a7910d.zip | |
std: update freebsd bits to new builtin
Diffstat (limited to 'lib/std/os')
| -rw-r--r-- | lib/std/os/bits/freebsd.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/os/bits/freebsd.zig b/lib/std/os/bits/freebsd.zig index 2f61d137e2..98e2898ab0 100644 --- a/lib/std/os/bits/freebsd.zig +++ b/lib/std/os/bits/freebsd.zig @@ -4,7 +4,7 @@ // The MIT license requires this copyright notice to be included in all copies // and substantial portions of the software. const std = @import("../../std.zig"); -const builtin = std.builtin; +const builtin = @import("builtin"); const maxInt = std.math.maxInt; pub const blksize_t = i32; @@ -842,7 +842,7 @@ pub const sigset_t = extern struct { pub const empty_sigset = sigset_t{ .__bits = [_]u32{0} ** _SIG_WORDS }; -pub usingnamespace switch (builtin.arch) { +pub usingnamespace switch (builtin.target.cpu.arch) { .x86_64 => struct { pub const ucontext_t = extern struct { sigmask: sigset_t, @@ -1011,7 +1011,7 @@ pub const EOWNERDEAD = 96; // Previous owner died pub const ELAST = 96; // Must be equal largest errno -pub const MINSIGSTKSZ = switch (builtin.arch) { +pub const MINSIGSTKSZ = switch (builtin.target.cpu.arch) { .i386, .x86_64 => 2048, .arm, .aarch64 => 4096, else => @compileError("MINSIGSTKSZ not defined for this architecture"), |
