# fix regression on linux with kernel_timespec · gitcafe/zig

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

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

Visibility: public

Requested revision: 2264fca03e6ce9203baf52d70825ec3bc32f8262

Requested commit: 2264fca03e6ce9203baf52d70825ec3bc32f8262

Commit: 2264fca03e6ce9203baf52d70825ec3bc32f8262

Tree: 33cfda1ae8fb44e36cc0b1e6dcdad76063f345d7

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
fix regression on linux with kernel_timespec

I incorrectly assumed that __kernel_timespec was used when not linking
libc, however that is not the case. `std.os.timespec` is used both for
libc and non-libc cases. `__kernel_timespec` is a special struct that is
used only for io_uring.

```

## Parents

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

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