Skip to content

Refactor OpenBSD-like module into OpenBSD #1355

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading