mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
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.
This commit is contained in:
parent
2e35fdd032
commit
573d9aab5e
1 changed files with 2 additions and 2 deletions
|
|
@ -7000,8 +7000,8 @@ pub const RTLD = switch (native_os) {
|
||||||
|
|
||||||
pub const dirent = switch (native_os) {
|
pub const dirent = switch (native_os) {
|
||||||
.linux, .emscripten => extern struct {
|
.linux, .emscripten => extern struct {
|
||||||
ino: c_uint,
|
ino: ino_t,
|
||||||
off: c_uint,
|
off: off_t,
|
||||||
reclen: c_ushort,
|
reclen: c_ushort,
|
||||||
type: u8,
|
type: u8,
|
||||||
name: [256]u8,
|
name: [256]u8,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue