Skip to content

Commit 8490147

Browse files
committed
NetBSD: Increase the size of sockaddr_dl.sdl_data from 12 to 24
Upstream commit: NetBSD/src@a3d9e0f (backport <#4782>) (cherry picked from commit 8ff5e7e)
1 parent 9f34749 commit 8490147

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

libc-test/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1514,6 +1514,7 @@ fn test_netbsd(target: &str) {
15141514
});
15151515

15161516
cfg.skip_struct(move |struct_| match struct_.ident() {
1517+
"sockaddr_dl" => true, // Last field increased size in 10
15171518
x if x.starts_with("ptrace_lwp") => true,
15181519
// These were packed before NetBSD 10
15191520
"arphdr" | "in_addr" | "ip_mreq" | "sockaddr_in" => true,

src/unix/bsd/netbsdlike/netbsd/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ s! {
412412
pub sdl_nlen: u8,
413413
pub sdl_alen: u8,
414414
pub sdl_slen: u8,
415-
pub sdl_data: [c_char; 12],
415+
pub sdl_data: [c_char; 24],
416416
}
417417

418418
pub struct __exit_status {

0 commit comments

Comments
 (0)