| ... | ... | @@ -6,7 +6,7 @@ |
| 6 | 6 | // provide `rename` when only the `renameat` syscall exists. |
| 7 | 7 | // * Does not support POSIX thread cancellation. |
| 8 | 8 | const std = @import("../std.zig"); |
| 9 | | const builtin = @import("builtin"); |
| 9 | const builtin = std.builtin; |
| 10 | 10 | const assert = std.debug.assert; |
| 11 | 11 | const maxInt = std.math.maxInt; |
| 12 | 12 | const elf = std.elf; |
| ... | ... | @@ -42,9 +42,9 @@ pub fn getauxval(index: usize) usize { |
| 42 | 42 | // Some architectures require 64bit parameters for some syscalls to be passed in |
| 43 | 43 | // even-aligned register pair |
| 44 | 44 | const require_aligned_register_pair = // |
| 45 | | comptime builtin.arch.isMIPS() or |
| 46 | | comptime builtin.arch.isARM() or |
| 47 | | comptime builtin.arch.isThumb(); |
| 45 | std.Target.current.cpu.arch.isMIPS() or |
| 46 | std.Target.current.cpu.arch.isARM() or |
| 47 | std.Target.current.cpu.arch.isThumb(); |
| 48 | 48 | |
| 49 | 49 | /// Get the errno from a syscall return value, or 0 for no error. |
| 50 | 50 | pub fn getErrno(r: usize) u12 { |