# os: fix missing and incorrect msghdr definitions · gitcafe/zig

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

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

Visibility: public

Requested revision: 7c42517151cf06b67268aec3be715b3e303e014a

Requested commit: 7c42517151cf06b67268aec3be715b3e303e014a

Commit: 7c42517151cf06b67268aec3be715b3e303e014a

Tree: 2a458266bfb3f3474c7ec5cdf8223815dcc22b8b

Author: Nameless

Committer: Andrew Kelley

## Message

```
os: fix missing and incorrect msghdr definitions

Macos uses the BSD definition of msghdr

All linux architectures share a single msghdr definition. Many
architectures had manually inserted padding fields that were endian
specific and some had fields with different integers. This unifies all
architectures to use a single correct msghdr definition.

```

## Parents

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

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