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.
This commit is contained in:
bors 2019-08-09 12:50:55 +00:00
commit a2b48d16f7
1 changed files with 5 additions and 0 deletions

View File

@ -369,6 +369,11 @@ fn test_openbsd(target: &str) {
(struct_ == "siginfo_t" && field == "si_addr")
});
cfg.skip_roundtrip(move |s| match s {
"dirent" | "utsname" | "utmp" => true,
_ => false,
});
cfg.generate("../src/lib.rs", "main.rs");
}