# std.os.linux: Also use kernel_timespec for riscv32 when libc is linked\. · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/6364995d3f40efa96bec905c43182e3d4bbaea08)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 6364995d3f40efa96bec905c43182e3d4bbaea08

Requested commit: 6364995d3f40efa96bec905c43182e3d4bbaea08

Commit: 6364995d3f40efa96bec905c43182e3d4bbaea08

Tree: e29be8fc2a6f26c11d51cd8d7b43da04740a3c2a

Author: Alex Rønne Petersen

Committer: Alex Rønne Petersen

## Message

```
std.os.linux: Also use kernel_timespec for riscv32 when libc is linked.

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.

```

## Parents

- [537cb49eb241521bf58df8510c1c86aea60eb84f](https://git.cafe/gitcafe/zig/commit/537cb49eb241521bf58df8510c1c86aea60eb84f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/6364995d3f40efa96bec905c43182e3d4bbaea08?format=markdown)
