Skip to content

Commit

Permalink
Auto merge of #1355 - gnzlbg:openbsdlike, r=gnzlbg
Browse files Browse the repository at this point in the history
Refactor OpenBSD-like module into OpenBSD

The only OpenBSD-like OS that we support after bitrig's removal is OpenBSD itself.

cc @semarie
  • Loading branch information
bors committed May 22, 2019
2 parents 50f4b67 + 7b45788 commit f3a7aad
Show file tree
Hide file tree
Showing 7 changed files with 490 additions and 516 deletions.
20 changes: 7 additions & 13 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2815,20 +2815,14 @@ fn test_linux(target: &str) {
cfg.skip_fn(|_| true)
.skip_const(|_| true)
.skip_static(|_| true)
.type_name(move |ty, _is_struct, _is_union| {
ty.to_string()
});
cfg.skip_struct(move |ty| {
match ty {
"Elf64_Phdr" | "Elf32_Phdr" => false,
_ => true,
}
.type_name(move |ty, _is_struct, _is_union| ty.to_string());
cfg.skip_struct(move |ty| match ty {
"Elf64_Phdr" | "Elf32_Phdr" => false,
_ => true,
});
cfg.skip_type(move |ty| {
match ty {
"Elf64_Phdr" | "Elf32_Phdr" => false,
_ => true,
}
cfg.skip_type(move |ty| match ty {
"Elf64_Phdr" | "Elf32_Phdr" => false,
_ => true,
});
cfg.header("elf.h");
cfg.generate("../src/lib.rs", "linux_elf.rs");
Expand Down
4 changes: 2 additions & 2 deletions src/unix/bsd/netbsdlike/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -677,8 +677,8 @@ cfg_if! {
mod netbsd;
pub use self::netbsd::*;
} else if #[cfg(target_os = "openbsd")] {
mod openbsdlike;
pub use self::openbsdlike::*;
mod openbsd;
pub use self::openbsd::*;
} else {
// Unknown target_os
}
Expand Down
File renamed without changes.
Loading

0 comments on commit f3a7aad

Please sign in to comment.