Skip to content

Commit 29fb9e4

Browse files
committed
std.os.linux.tls: don't unnecessarily use std.posix
1 parent d5481e6 commit 29fb9e4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/std/os/linux/tls.zig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const math = std.math;
1616
const assert = std.debug.assert;
1717
const native_arch = @import("builtin").cpu.arch;
1818
const linux = std.os.linux;
19-
const posix = std.posix;
2019
const page_size_min = std.heap.page_size_min;
2120

2221
/// Represents an ELF TLS variant.
@@ -523,7 +522,7 @@ pub fn initStatic(phdrs: []elf.Phdr) void {
523522
}
524523

525524
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;
527526
const flags: linux.MAP = .{ .TYPE = .PRIVATE, .ANONYMOUS = true };
528527

529528
if (@hasField(linux.SYS, "mmap2")) {

0 commit comments

Comments
 (0)