We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5481e6 commit 29fb9e4Copy full SHA for 29fb9e4
lib/std/os/linux/tls.zig
@@ -16,7 +16,6 @@ const math = std.math;
16
const assert = std.debug.assert;
17
const native_arch = @import("builtin").cpu.arch;
18
const linux = std.os.linux;
19
-const posix = std.posix;
20
const page_size_min = std.heap.page_size_min;
21
22
/// Represents an ELF TLS variant.
@@ -523,7 +522,7 @@ pub fn initStatic(phdrs: []elf.Phdr) void {
523
522
}
524
525
inline fn mmap_tls(length: usize) usize {
526
- const prot = posix.PROT.READ | posix.PROT.WRITE;
+ const prot = linux.PROT.READ | linux.PROT.WRITE;
527
const flags: linux.MAP = .{ .TYPE = .PRIVATE, .ANONYMOUS = true };
528
529
if (@hasField(linux.SYS, "mmap2")) {
0 commit comments