| ... | @@ -6327,12 +6327,13 @@ pub const POSIX_FADV = switch (native_arch) { | ... | @@ -6327,12 +6327,13 @@ pub const POSIX_FADV = switch (native_arch) { |
| 6327 | }; | 6327 | }; |
| 6328 | | 6328 | |
| 6329 | /// The timespec struct used by the kernel. | 6329 | /// The timespec struct used by the kernel. |
| 6330 | pub const kernel_timespec = if (@sizeOf(usize) >= 8) timespec else extern struct { | 6330 | pub const kernel_timespec = extern struct { |
| 6331 | sec: i64, | 6331 | sec: i64, |
| 6332 | nsec: i64, | 6332 | nsec: i64, |
| 6333 | }; | 6333 | }; |
| 6334 | | 6334 | |
| 6335 | pub const timespec = extern struct { | 6335 | // https://github.com/ziglang/zig/issues/4726#issuecomment-2190337877 |
| | 6336 | pub const timespec = if (!builtin.link_libc and native_arch == .riscv32) kernel_timespec else extern struct { |
| 6336 | sec: isize, | 6337 | sec: isize, |
| 6337 | nsec: isize, | 6338 | nsec: isize, |
| 6338 | }; | 6339 | }; |