authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-08-14 04:11:38+02:00
committergravatar for mlugg@mlugg.co.ukMatthew Lugg <mlugg@mlugg.co.uk> 2026-08-16 10:37:20+01:00
log45ad4aab95cf1916a0c63915584d8e1c12dccdc7
tree4ae638bc0302bedc6869844b9df9d4fe1e319474
parenta2ddff74f82b518ed7d0b22ff88bf3b1ee97dbb2
signaturelock-open Commit is signed but in an unrecognized format.

std.os.linux: Elf_Symndx is u64 on alpha like s390x


1 files changed, 4 insertions(+), 1 deletions(-)

lib/std/os/linux.zig+4-1
......@@ -2135,7 +2135,10 @@ pub fn flock(fd: fd_t, operation: i32) usize {
21352135 return syscall2(.flock, @as(u32, @bitCast(fd)), @as(u32, @bitCast(operation)));
21362136}
21372137
2138pub const Elf_Symndx = if (native_arch == .s390x) u64 else u32;
2138pub const Elf_Symndx = switch (native_arch) {
2139 .alpha, .s390x => u64,
2140 else => u32,
2141};
21392142
21402143// We must follow the C calling convention when we call into the VDSO
21412144const VdsoClockGettime = *align(1) const fn (clockid_t, *timespec) callconv(.c) usize;