Skip to content

Commit

Permalink
Refactor OpenBSD-like module into OpenBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
gnzlbg committed May 22, 2019
1 parent 50f4b67 commit 7b45788
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 7b45788

Please sign in to comment.