From 29fb9e4da7d60f32f7efe6d280a69e020cd117a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Fri, 17 Oct 2025 02:46:47 +0200 Subject: [PATCH] std.os.linux.tls: don't unnecessarily use std.posix --- lib/std/os/linux/tls.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/std/os/linux/tls.zig b/lib/std/os/linux/tls.zig index 4433727d9a..0c063e6df2 100644 --- 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")) {