Skip to content

Commit

Permalink
Merge pull request #4211 from tgross35/backport-openbsd-build
Browse files Browse the repository at this point in the history
[0.2] Skip `c_char_def` on OpenBSD
  • Loading branch information
tgross35 authored Dec 18, 2024
2 parents c86544f + fab6a64 commit 8ebcf49
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 @@ -647,6 +647,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 8ebcf49

Please sign in to comment.