# musl: fix alltypes.h and syscall.h not being correct · gitcafe/zig

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

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

Visibility: public

Requested revision: fed5c12d9a2ab14c5bb66251ba6ee3e356bce8d3

Requested commit: fed5c12d9a2ab14c5bb66251ba6ee3e356bce8d3

Commit: fed5c12d9a2ab14c5bb66251ba6ee3e356bce8d3

Tree: f01ffcd50d6074d2427c8a65d7777cb1ff64dd1e

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
musl: fix alltypes.h and syscall.h not being correct

The previous
[instructions](https://github.com/ziglang/zig/wiki/Updating-libc) for
updating musl libc headers had this (repeated for each architecture):

make DESTDIR=build-all/arm install-headers ARCH=arm

However musl's build system does not properly rebuild alltypes.h and
syscall.h from source, instead using whatever is cached from the
previous build. In the case of the previous time that I updated to musl
1.1.23, this happened to be the aarch64 architecture.

As a workaround, one can remove the obj/ directory to force rebuilding
this file. Now the instructions say this (repeated for each architecture):

rm -rf obj/ && make DESTDIR=build-all/arm install-headers ARCH=arm

This commit updates the resulting headers after this workaround is
applied and the process headers tool is run again.

```

## Parents

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

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