Skip to content

Commit 0b4b184

Browse files
committed
Adapt to new version of ctest
1 parent cfd340f commit 0b4b184

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc-test/build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ fn main() {
344344
}
345345
}
346346

347-
cfg.type_name(move |ty, is_struct| {
347+
cfg.type_name(move |ty, is_struct, is_union| {
348348
match ty {
349349
// Just pass all these through, no need for a "struct" prefix
350350
"FILE" |
@@ -823,7 +823,7 @@ fn main() {
823823
cfg.skip_struct(|s| {
824824
s != "termios2"
825825
});
826-
cfg.type_name(move |ty, is_struct| {
826+
cfg.type_name(move |ty, is_struct, is_union| {
827827
match ty {
828828
t if is_struct => format!("struct {}", t),
829829
t => t.to_string(),

0 commit comments

Comments
 (0)