Skip to content

Commit a2b48d1

Browse files
committed
Auto merge of #1456 - semarie:openbsd-roundtrip, r=gnzlbg
skip roundtrip on few structs on OpenBSD skip roundtrip on some structs on OpenBSD. it is mostly the same than other targets: dirent, utsname, utmp.
2 parents 7e4ece1 + 04c7f11 commit a2b48d1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libc-test/build.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,11 @@ fn test_openbsd(target: &str) {
369369
(struct_ == "siginfo_t" && field == "si_addr")
370370
});
371371

372+
cfg.skip_roundtrip(move |s| match s {
373+
"dirent" | "utsname" | "utmp" => true,
374+
_ => false,
375+
});
376+
372377
cfg.generate("../src/lib.rs", "main.rs");
373378
}
374379

0 commit comments

Comments
 (0)