Skip to content

Commit

Permalink
Skip c_char_def on OpenBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Dec 18, 2024
1 parent 5f41b7a commit 9ff3409
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 9ff3409

Please sign in to comment.