Skip to content

Commit

Permalink
Skip c_char_def on OpenBSD
Browse files Browse the repository at this point in the history
Fixes rust-lang#4209

(backport <rust-lang#4210>)
(cherry picked from commit 9ff3409)
  • Loading branch information
tgross35 committed Dec 18, 2024
1 parent c86544f commit fab6a64
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 fab6a64

Please sign in to comment.