Skip to content

Commit 88ca383

Browse files
committed
Use contains for __mcontext struct because string matching doesn't seem to work
1 parent 6290d3d commit 88ca383

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

libc-test/build.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3074,11 +3074,9 @@ fn test_freebsd(target: &str) {
30743074
// `tcp_snd_wscale` and `tcp_rcv_wscale` are bitfields
30753075
("tcp_info", "tcp_snd_wscale") => true,
30763076
("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,
30793077

3080-
// mc_tlsbase introduced in FreeBSD 15
3081-
("__mcontext", "mc_tlsbase") => true,
3078+
// __mcontext changed mc_spare and mc_tlsbase between OS releases.
3079+
(t, "mc_spare" | "mc_tlsbase") if t.contains("mcontext") => true,
30823080

30833081
_ => false,
30843082
}

0 commit comments

Comments
 (0)