Skip to content

Commit aa08592

Browse files
committed
musl: fix test build with musl 1.2.0+
Since musl 1.2.0, the utmpx.ut_session type changed from long to int (with padding). For now, skip the test for this field. Fixes: 3305
1 parent 50a2acf commit aa08592

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libc-test/build.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4795,7 +4795,9 @@ fn test_linux(target: &str) {
47954795
(struct_ == "statvfs" && field == "__f_spare") ||
47964796
(struct_ == "statvfs64" && field == "__f_spare") ||
47974797
// the `xsk_tx_metadata_union` field is an anonymous union
4798-
(struct_ == "xsk_tx_metadata" && field == "xsk_tx_metadata_union")
4798+
(struct_ == "xsk_tx_metadata" && field == "xsk_tx_metadata_union") ||
4799+
// FIXME(musl): After musl 1.2.0, the type becomes `int` instead of `long`.
4800+
(struct_ == "utmpx" && field == "ut_session")
47994801
});
48004802

48014803
cfg.skip_roundtrip(move |s| match s {

0 commit comments

Comments
 (0)