diff options
author | bors <bors@rust-lang.org> | 2019-08-09 12:50:55 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2019-08-09 12:50:55 +0000 |
commit | a2b48d16f744051982835fc3e9dc565de8590463 (patch) | |
tree | e917c11a5742f8b58764bd10aae14a4062d38e09 | |
parent | 7e4ece1a97d6805b663d940f6ed9dca0a3bc73d6 (diff) | |
parent | 04c7f1166c07fa8bd83f367288b20793d3d985e6 (diff) | |
download | rust-libc-a2b48d16f744051982835fc3e9dc565de8590463.tar.gz |
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.
-rw-r--r-- | libc-test/build.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs index d4ad4a9a4e..7eafc086c6 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -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"); } |