authorgravatar for cartersnook04@gmail.comCarter Snook <cartersnook04@gmail.com> 2025-04-21 16:16:36-05:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-04-26 14:55:59+02:00
log573d9aab5e8b5eb21f5dfd21fc92f16985ff7e05
tree897db8df69adcc9d27924e2600943d6dfc537822
parent2e35fdd032035203b588fa229585c3ee6702f2d4

std.c: use arch's ino_t and off_t for dirent

Fixes #23622. The integer types used for these fields before would not work on some platforms.

1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/c.zig+2-2
......@@ -7000,8 +7000,8 @@ pub const RTLD = switch (native_os) {
70007000
70017001pub const dirent = switch (native_os) {
70027002 .linux, .emscripten => extern struct {
7003 ino: c_uint,
7004 off: c_uint,
7003 ino: ino_t,
7004 off: off_t,
70057005 reclen: c_ushort,
70067006 type: u8,
70077007 name: [256]u8,