| author | |
| committer | |
| log | 6364995d3f40efa96bec905c43182e3d4bbaea08 |
| tree | e29be8fc2a6f26c11d51cd8d7b43da04740a3c2a |
| parent | 537cb49eb241521bf58df8510c1c86aea60eb84f |
| signature |
Both glibc and musl use time64 as the base ABI for riscv32. This fixes the
`sleep` test in `std.time` hanging forever due to the libc functions reading
bogus values.1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/os/linux.zig+1-1| ... | ... | @@ -7452,7 +7452,7 @@ pub const kernel_timespec = extern struct { |
| 7452 | 7452 | }; |
| 7453 | 7453 | |
| 7454 | 7454 | // https://github.com/ziglang/zig/issues/4726#issuecomment-2190337877 |
| 7455 | pub const timespec = if (!builtin.link_libc and native_arch == .riscv32) kernel_timespec else extern struct { | |
| 7455 | pub const timespec = if (native_arch == .riscv32) kernel_timespec else extern struct { | |
| 7456 | 7456 | sec: isize, |
| 7457 | 7457 | nsec: isize, |
| 7458 | 7458 | }; |