commit 29fb9e4da7d60f32f7efe6d280a69e020cd117a7 (tree)
parent d5481e65365f78c9ca20c29882f28bf80129e579
Author: Alex Rønne Petersen <alex@alexrp.com>
Date: Fri, 17 Oct 2025 02:46:47 +0200
std.os.linux.tls: don't unnecessarily use std.posix
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/std/os/linux/tls.zig b/lib/std/os/linux/tls.zig
@@ -16,7 +16,6 @@ const math = std.math;
const assert = std.debug.assert;
const native_arch = @import("builtin").cpu.arch;
const linux = std.os.linux;
-const posix = std.posix;
const page_size_min = std.heap.page_size_min;
/// Represents an ELF TLS variant.
@@ -523,7 +522,7 @@ pub fn initStatic(phdrs: []elf.Phdr) void {
}
inline fn mmap_tls(length: usize) usize {
- const prot = posix.PROT.READ | posix.PROT.WRITE;
+ const prot = linux.PROT.READ | linux.PROT.WRITE;
const flags: linux.MAP = .{ .TYPE = .PRIVATE, .ANONYMOUS = true };
if (@hasField(linux.SYS, "mmap2")) {