Skip to content

Commit bbd3e20

Browse files
committed
Auto merge of #3390 - devnexen:openbsd_ifreq_upd, r=JohnTitor
openbsd ifreq implementation refinement ifru_data member using proper… … typedefed type
2 parents 02c385e + 49fe732 commit bbd3e20

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

libc-test/build.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -523,15 +523,6 @@ fn test_openbsd(target: &str) {
523523
"sys/param.h",
524524
}
525525

526-
cfg.skip_type(move |ty| {
527-
if ty.starts_with("__c_anonymous_") {
528-
return true;
529-
}
530-
match ty {
531-
_ => false,
532-
}
533-
});
534-
535526
cfg.skip_struct(move |ty| {
536527
if ty.starts_with("__c_anonymous_") {
537528
return true;

src/unix/bsd/netbsdlike/openbsd/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ s_no_extra_traits! {
659659
pub ifru_metric: ::c_int,
660660
pub ifru_vnetid: i64,
661661
pub ifru_media: u64,
662-
pub ifru_data: *mut ::c_char,
662+
pub ifru_data: ::caddr_t,
663663
pub ifru_index: ::c_uint,
664664
}
665665
}

0 commit comments

Comments
 (0)