From 58e6458130a8dd09d7e9cfcbd3b5ab9996d81bfa Mon Sep 17 00:00:00 2001 From: Yorhel Date: Thu, 1 May 2025 14:51:09 +0200 Subject: [PATCH] Use Stat.mtime() instead of .mtim Aha, so that's why the mtime() method exists, the field has a different name on some other systems. Fixes #258 --- src/scan.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scan.zig b/src/scan.zig index c58d3d8..a78311c 100644 --- a/src/scan.zig +++ b/src/scan.zig @@ -77,7 +77,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.mtim.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),