| ... | ... | @@ -304,7 +304,7 @@ pub const Dir = struct { |
| 304 | 304 | .macos, .ios, .freebsd, .netbsd, .dragonfly, .openbsd => struct { |
| 305 | 305 | dir: Dir, |
| 306 | 306 | seek: i64, |
| 307 | | buf: [8192]u8, // TODO align(@alignOf(os.dirent)), |
| 307 | buf: [8192]u8, // TODO align(@alignOf(os.system.dirent)), |
| 308 | 308 | index: usize, |
| 309 | 309 | end_index: usize, |
| 310 | 310 | |
| ... | ... | @@ -344,7 +344,7 @@ pub const Dir = struct { |
| 344 | 344 | self.index = 0; |
| 345 | 345 | self.end_index = @intCast(usize, rc); |
| 346 | 346 | } |
| 347 | | const darwin_entry = @ptrCast(*align(1) os.dirent, &self.buf[self.index]); |
| 347 | const darwin_entry = @ptrCast(*align(1) os.system.dirent, &self.buf[self.index]); |
| 348 | 348 | const next_index = self.index + darwin_entry.reclen(); |
| 349 | 349 | self.index = next_index; |
| 350 | 350 | |
| ... | ... | @@ -391,7 +391,7 @@ pub const Dir = struct { |
| 391 | 391 | self.index = 0; |
| 392 | 392 | self.end_index = @intCast(usize, rc); |
| 393 | 393 | } |
| 394 | | const bsd_entry = @ptrCast(*align(1) os.dirent, &self.buf[self.index]); |
| 394 | const bsd_entry = @ptrCast(*align(1) os.system.dirent, &self.buf[self.index]); |
| 395 | 395 | const next_index = self.index + bsd_entry.reclen(); |
| 396 | 396 | self.index = next_index; |
| 397 | 397 | |
| ... | ... | @@ -462,7 +462,7 @@ pub const Dir = struct { |
| 462 | 462 | self.index = 0; |
| 463 | 463 | self.end_index = @intCast(usize, rc); |
| 464 | 464 | } |
| 465 | | const haiku_entry = @ptrCast(*align(1) os.dirent, &self.buf[self.index]); |
| 465 | const haiku_entry = @ptrCast(*align(1) os.system.dirent, &self.buf[self.index]); |
| 466 | 466 | const next_index = self.index + haiku_entry.reclen(); |
| 467 | 467 | self.index = next_index; |
| 468 | 468 | const name = mem.spanZ(@ptrCast([*:0]u8, &haiku_entry.d_name)); |