Skip to content

Commit

Permalink
Merge pull request #4210 from tgross35/openbsd-build
Browse files Browse the repository at this point in the history
Skip `c_char_def` on OpenBSD
  • Loading branch information
tgross35 authored Dec 18, 2024
2 parents 5f41b7a + 9ff3409 commit fd5b78c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,11 @@ fn test_openbsd(target: &str) {
}
});

cfg.skip_type(move |ty| {
// `c_char_def` is always public but not always reexported.
ty == "c_char_def"
});

cfg.type_name(move |ty, is_struct, is_union| {
match ty {
// Just pass all these through, no need for a "struct" prefix
Expand Down

0 comments on commit fd5b78c

Please sign in to comment.