Skip to content

Commit 573d9aa

Browse files
sno2alexrp
authored andcommitted
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 parent 2e35fdd commit 573d9aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/std/c.zig

+2-2
Original file line numberDiff line numberDiff line change
@@ -7000,8 +7000,8 @@ pub const RTLD = switch (native_os) {
70007000

70017001
pub 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,

0 commit comments

Comments
 (0)