From 607b07a30ed03e4f42c15cd1b9d93f4932db7d80 Mon Sep 17 00:00:00 2001 From: Eric Joldasov Date: Sun, 9 Feb 2025 14:16:08 +0500 Subject: [PATCH] change deprecated `timespec.tv_sec` to `timespec.sec` Part of the reorganization of `std.c` namespace. See https://github.com/ziglang/zig/pull/20679 . Signed-off-by: Eric Joldasov --- src/scan.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scan.zig b/src/scan.zig index 96ec5c1..f850e77 100644 --- a/src/scan.zig +++ b/src/scan.zig @@ -67,7 +67,7 @@ fn statAt(parent: std.fs.Dir, name: [:0]const u8, follow: bool, symlink: *bool) .hasgid = true, .hasmode = true, }, - .mtime = clamp(model.Ext, .mtime, stat.mtime().tv_sec), + .mtime = clamp(model.Ext, .mtime, stat.mtime().sec), .uid = truncate(model.Ext, .uid, stat.uid), .gid = truncate(model.Ext, .gid, stat.gid), .mode = truncate(model.Ext, .mode, stat.mode),