| ... | ... | @@ -4,7 +4,7 @@ |
| 4 | 4 | // The MIT license requires this copyright notice to be included in all copies |
| 5 | 5 | // and substantial portions of the software. |
| 6 | 6 | const std = @import("../../std.zig"); |
| 7 | | const builtin = std.builtin; |
| 7 | const builtin = @import("builtin"); |
| 8 | 8 | const maxInt = std.math.maxInt; |
| 9 | 9 | |
| 10 | 10 | pub const blksize_t = i32; |
| ... | ... | @@ -842,7 +842,7 @@ pub const sigset_t = extern struct { |
| 842 | 842 | |
| 843 | 843 | pub const empty_sigset = sigset_t{ .__bits = [_]u32{0} ** _SIG_WORDS }; |
| 844 | 844 | |
| 845 | | pub usingnamespace switch (builtin.arch) { |
| 845 | pub usingnamespace switch (builtin.target.cpu.arch) { |
| 846 | 846 | .x86_64 => struct { |
| 847 | 847 | pub const ucontext_t = extern struct { |
| 848 | 848 | sigmask: sigset_t, |
| ... | ... | @@ -1011,7 +1011,7 @@ pub const EOWNERDEAD = 96; // Previous owner died |
| 1011 | 1011 | |
| 1012 | 1012 | pub const ELAST = 96; // Must be equal largest errno |
| 1013 | 1013 | |
| 1014 | | pub const MINSIGSTKSZ = switch (builtin.arch) { |
| 1014 | pub const MINSIGSTKSZ = switch (builtin.target.cpu.arch) { |
| 1015 | 1015 | .i386, .x86_64 => 2048, |
| 1016 | 1016 | .arm, .aarch64 => 4096, |
| 1017 | 1017 | else => @compileError("MINSIGSTKSZ not defined for this architecture"), |