Skip to content

Commit 4cdbb5e

Browse files
authored
Merge pull request #4438 from xbjfk/fix-musl-test
musl: fix test build with musl 1.2.0+
2 parents 50a2acf + aa08592 commit 4cdbb5e

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)