| ... | ... | @@ -16,7 +16,6 @@ const math = std.math; |
| 16 | 16 | const assert = std.debug.assert; |
| 17 | 17 | const native_arch = @import("builtin").cpu.arch; |
| 18 | 18 | const linux = std.os.linux; |
| 19 | | const posix = std.posix; |
| 20 | 19 | const page_size_min = std.heap.page_size_min; |
| 21 | 20 | |
| 22 | 21 | /// Represents an ELF TLS variant. |
| ... | ... | @@ -523,7 +522,7 @@ pub fn initStatic(phdrs: []elf.Phdr) void { |
| 523 | 522 | } |
| 524 | 523 | |
| 525 | 524 | inline fn mmap_tls(length: usize) usize { |
| 526 | | const prot = posix.PROT.READ | posix.PROT.WRITE; |
| 525 | const prot = linux.PROT.READ | linux.PROT.WRITE; |
| 527 | 526 | const flags: linux.MAP = .{ .TYPE = .PRIVATE, .ANONYMOUS = true }; |
| 528 | 527 | |
| 529 | 528 | if (@hasField(linux.SYS, "mmap2")) { |