Skip to content

Commit 5bd1293

Browse files
committed
std.fs.File: always use u64 for inode number on linux
1 parent 48ad6cf commit 5bd1293

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/std/fs/File.zig

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ handle: Handle,
33

44
pub const Handle = posix.fd_t;
55
pub const Mode = posix.mode_t;
6-
pub const INode = posix.ino_t;
6+
pub const INode = switch (builtin.os.tag) {
7+
.linux => u64,
8+
else => posix.ino_t,
9+
};
10+
711
pub const Uid = posix.uid_t;
812
pub const Gid = posix.gid_t;
913

0 commit comments

Comments
 (0)