# fix regression of flock being called on wasi targets · gitcafe/zig

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

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

Visibility: public

Requested revision: 01337e209366bf7eed9a8aca0b80be0e8c9c04f5

Requested commit: 01337e209366bf7eed9a8aca0b80be0e8c9c04f5

Commit: 01337e209366bf7eed9a8aca0b80be0e8c9c04f5

Tree: 82d84ded03cf82eca3662acc1b16b100964937b4

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
fix regression of flock being called on wasi targets

* common symbols are now public from std.c even if they live in
  std.posix
* LOCK is now one of the common symbols since it is the same on 100% of
  operating systems.
* flock is now void value on wasi and windows
* std.fs.Dir now uses flock being void as feature detection, avoiding
  trying to call it on wasi and windows

```

## Parents

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

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