| ... | @@ -501,6 +501,8 @@ pub const Dir = struct { | ... | @@ -501,6 +501,8 @@ pub const Dir = struct { |
| 501 | }, | 501 | }, |
| 502 | .linux => struct { | 502 | .linux => struct { |
| 503 | dir: Dir, | 503 | dir: Dir, |
| | 504 | // The if guard is solely there to prevent compile errors from missing `os.linux.dirent64` |
| | 505 | // definition when compiling for other OSes. It doesn't do anything when compiling for Linux. |
| 504 | buf: [8192]u8 align(if (builtin.os.tag != .linux) 1 else @alignOf(os.linux.dirent64)), | 506 | buf: [8192]u8 align(if (builtin.os.tag != .linux) 1 else @alignOf(os.linux.dirent64)), |
| 505 | index: usize, | 507 | index: usize, |
| 506 | end_index: usize, | 508 | end_index: usize, |