diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-10-17 02:46:47 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-10-17 02:46:47 +0200 |
| commit | 29fb9e4da7d60f32f7efe6d280a69e020cd117a7 (patch) | |
| tree | 99b15acd20f98517565f384db0f2e1e193bd5ed1 /lib/std | |
| parent | d5481e65365f78c9ca20c29882f28bf80129e579 (diff) | |
| download | zig-29fb9e4da7d60f32f7efe6d280a69e020cd117a7.tar.gz zig-29fb9e4da7d60f32f7efe6d280a69e020cd117a7.zip | |
std.os.linux.tls: don't unnecessarily use std.posix
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/os/linux/tls.zig | 3 |
1 files changed, 1 insertions, 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")) { |
