| ... | @@ -103,8 +103,8 @@ pub const Reader = struct { | ... | @@ -103,8 +103,8 @@ pub const Reader = struct { |
| 103 | | 103 | |
| 104 | /// A length for `buffer` that allows all implementations to function. | 104 | /// A length for `buffer` that allows all implementations to function. |
| 105 | pub const min_buffer_len = switch (native_os) { | 105 | pub const min_buffer_len = switch (native_os) { |
| 106 | .linux => @sizeOf(std.os.linux.dirent64) + | 106 | .linux => std.mem.alignForward(usize, @sizeOf(std.os.linux.dirent64), 8) + |
| 107 | std.mem.alignForward(usize, max_name_bytes, @alignOf(std.os.linux.dirent64)), | 107 | std.mem.alignForward(usize, max_name_bytes, 8), |
| 108 | .windows => std.mem.alignForward(usize, max_name_bytes, @alignOf(usize)), | 108 | .windows => std.mem.alignForward(usize, max_name_bytes, @alignOf(usize)), |
| 109 | else => if (builtin.link_libc) @sizeOf(std.c.dirent) else std.mem.alignForward(usize, max_name_bytes, @alignOf(usize)), | 109 | else => if (builtin.link_libc) @sizeOf(std.c.dirent) else std.mem.alignForward(usize, max_name_bytes, @alignOf(usize)), |
| 110 | }; | 110 | }; |