# std.os.linux: Replace \`@hasDecl\(\)\` with \`\!= void\` check for VDSO\. · gitcafe/zig

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

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

Visibility: public

Requested revision: d71076c9826ddd66bfcc04b9a6ded9dbf540d239

Requested commit: d71076c9826ddd66bfcc04b9a6ded9dbf540d239

Commit: d71076c9826ddd66bfcc04b9a6ded9dbf540d239

Tree: dfa089b196eacda8b07df4a221ed709f22e289f7

Author: Alex Rønne Petersen

Committer: Alex Rønne Petersen

## Message

```
std.os.linux: Replace `@hasDecl()` with `!= void` check for VDSO.

If there is a VDSO, it will have clock_gettime(). The main thing we're concerned
about is architectures that don't have a VDSO at all, of which there are a few.

```

## Parents

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

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