Skip to content

Commit 1e7b008

Browse files
committed
Use skip_struct for __mcontext because skip_field doesn't seem to work
1 parent 6290d3d commit 1e7b008

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

libc-test/build.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2935,6 +2935,10 @@ fn test_freebsd(target: &str) {
29352935
// Those are introduced in FreeBSD 15.
29362936
"xktls_session_onedir" | "xktls_session" if Some(15) > freebsd_ver => true,
29372937

2938+
// __mcontext changed mc_spare and mc_tlsbase between OS releases, and `skip_field`
2939+
// doesn't seem to work for them.
2940+
"__mcontext" => true,
2941+
29382942
_ => false,
29392943
}
29402944
});
@@ -3074,11 +3078,6 @@ fn test_freebsd(target: &str) {
30743078
// `tcp_snd_wscale` and `tcp_rcv_wscale` are bitfields
30753079
("tcp_info", "tcp_snd_wscale") => true,
30763080
("tcp_info", "tcp_rcv_wscale") => true,
3077-
// mc_spare can change in size between OS releases. It's a spare field, after all.
3078-
("__mcontext", "mc_spare") => true,
3079-
3080-
// mc_tlsbase introduced in FreeBSD 15
3081-
("__mcontext", "mc_tlsbase") => true,
30823081

30833082
_ => false,
30843083
}

0 commit comments

Comments
 (0)