Commit b4ae660
src/new/netbsd/net/if_.rs: make if_msghdr self-tests succeed on ilp32 hosts:
This fixes the following errors from `cd libc-test; cargo test`:
bad `if_msghdr` size: rust: 148 != c 152
bad `if_msghdr` align: rust: 4 != c 8
and
size of `struct if_msghdr` is 152 in C and 148 in Rust
as verified natively on NetBSD/i386 10.0 with rust 1.92.0.
Ref. https://nxr.netbsd.org/xref/src/sys/net/if.h#790 for the
original C definition of `struct if_msghdr`.
(backport <rust-lang#4902>)
(cherry picked from commit 86dbfd4)1 parent 287e383 commit b4ae660
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
0 commit comments