# wasi-libc: De-deduplicate erroneously removed headers · gitcafe/zig

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

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

Visibility: public

Requested revision: 6376103b23617735044970f08c2a314c46b97c98

Requested commit: 6376103b23617735044970f08c2a314c46b97c98

Commit: 6376103b23617735044970f08c2a314c46b97c98

Tree: ea060581a37b1151fea0bf4057da3e2085b72b33

Author: Carl Åstholm

Committer: Carl Åstholm

## Message

```
wasi-libc: De-deduplicate erroneously removed headers

05d8b565ad1a1d6c0c1e93dc47f1d828043fcafc deduplicated wasi-libc headers
that are identical to upstream musl, but because some public headers
match the same `#include <>` patterns as private headers, this resulted
in unmodified upstream musl headers sometimes getting prioritized when
compiling wasi-libc, resulting in incorrect definitions. For example,
`UTIME_OMIT` is supposed to be -2 on WASI, but became 0x3ffffffe.

The restored headers were sourced from
<https://github.com/WebAssembly/wasi-libc/tree/c89896107d7b57aef69dcadede47409ee4f702ee>
which is the same revision as the most recent wasi-libc sync
07cc32b0041e5e12f72d682fd06a995fe904d556.

```

## Parents

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

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