From af88310caf86b1b1e84d9f0764af522b402241b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Fri, 19 Jun 2026 05:58:47 +0200 Subject: [PATCH] std.os.linux: fix kernel_timespec.nsec to be isize Only kernel_timespec.sec should be unconditionally i64. --- lib/std/os/linux.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/os/linux.zig b/lib/std/os/linux.zig index 8892c15ae9082aa5f5f014d49d9665401032dbcc..f39d48d7996d51ade1fb5df3b9d40fa267fb5fe7 100644 --- a/lib/std/os/linux.zig +++ b/lib/std/os/linux.zig @@ -9438,7 +9438,7 @@ pub const timezone = extern struct { /// The timespec struct used by the kernel. pub const kernel_timespec = extern struct { sec: i64, - nsec: i64, + nsec: isize, /// For use with `utimensat` and `futimens`. pub const NOW: timespec = .{ -- 2.54.0