| ... | ... | @@ -24,7 +24,7 @@ pub const Iterator = switch (native_os) { |
| 24 | 24 | .macos, .ios, .freebsd, .netbsd, .dragonfly, .openbsd, .solaris, .illumos => struct { |
| 25 | 25 | dir: Dir, |
| 26 | 26 | seek: i64, |
| 27 | | buf: [1024]u8, // TODO align(@alignOf(posix.system.dirent)), |
| 27 | buf: [1024]u8 align(@alignOf(posix.system.dirent)), |
| 28 | 28 | index: usize, |
| 29 | 29 | end_index: usize, |
| 30 | 30 | first_iter: bool, |
| ... | ... | @@ -328,8 +328,6 @@ pub const Iterator = switch (native_os) { |
| 328 | 328 | }, |
| 329 | 329 | .linux => struct { |
| 330 | 330 | dir: Dir, |
| 331 | | // The if guard is solely there to prevent compile errors from missing `linux.dirent64` |
| 332 | | // definition when compiling for other OSes. It doesn't do anything when compiling for Linux. |
| 333 | 331 | buf: [1024]u8 align(@alignOf(linux.dirent64)), |
| 334 | 332 | index: usize, |
| 335 | 333 | end_index: usize, |
| ... | ... | @@ -490,7 +488,7 @@ pub const Iterator = switch (native_os) { |
| 490 | 488 | }, |
| 491 | 489 | .wasi => struct { |
| 492 | 490 | dir: Dir, |
| 493 | | buf: [1024]u8, // TODO align(@alignOf(posix.wasi.dirent_t)), |
| 491 | buf: [1024]u8 align(@alignOf(std.os.wasi.dirent_t)), |
| 494 | 492 | cookie: u64, |
| 495 | 493 | index: usize, |
| 496 | 494 | end_index: usize, |