diff options
| author | Carter Snook <cartersnook04@gmail.com> | 2025-04-21 16:16:36 -0500 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-04-26 14:55:59 +0200 |
| commit | 573d9aab5e8b5eb21f5dfd21fc92f16985ff7e05 (patch) | |
| tree | 897db8df69adcc9d27924e2600943d6dfc537822 /lib/std | |
| parent | 2e35fdd032035203b588fa229585c3ee6702f2d4 (diff) | |
| download | zig-573d9aab5e8b5eb21f5dfd21fc92f16985ff7e05.tar.gz zig-573d9aab5e8b5eb21f5dfd21fc92f16985ff7e05.zip | |
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.
Diffstat (limited to 'lib/std')
| -rw-r--r-- | lib/std/c.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/c.zig b/lib/std/c.zig index 8e50eb9792..35d175f0b9 100644 --- a/lib/std/c.zig +++ b/lib/std/c.zig @@ -7000,8 +7000,8 @@ pub const RTLD = switch (native_os) { pub const dirent = switch (native_os) { .linux, .emscripten => extern struct { - ino: c_uint, - off: c_uint, + ino: ino_t, + off: off_t, reclen: c_ushort, type: u8, name: [256]u8, |
