Skip to content

Commit b9b755b

Browse files
committed
NetBSD: Only skip sockaddr_dl on NetBSD9
Fixes: 8ff5e7e ("NetBSD: Increase the size of sockaddr_dl.sdl_data from 12 to 24")
1 parent 4484ae3 commit b9b755b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc-test/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1456,7 +1456,7 @@ fn test_netbsd(target: &str) {
14561456
});
14571457

14581458
cfg.skip_struct(move |struct_| match struct_.ident() {
1459-
"sockaddr_dl" => true, // Last field increased size in 10
1459+
"sockaddr_dl" if !netbsd9 => true, // Last field increased size in 10
14601460
x if x.starts_with("ptrace_lwp") => true,
14611461
// These were packed before NetBSD 10
14621462
"arphdr" | "in_addr" | "ip_mreq" | "sockaddr_in" => true,

0 commit comments

Comments
 (0)