File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -321,6 +321,8 @@ fn test_apple(target: &str) {
321
321
// FIXME: the array size has been changed since macOS 10.15 ([8] -> [7]).
322
322
( "statfs" , "f_reserved" ) => true ,
323
323
( "__darwin_arm_neon_state64" , "__v" ) => true ,
324
+ // MAXPATHLEN is too big for auto-derive traits on arrays.
325
+ ( "vnode_info_path" , "vip_path" ) => true ,
324
326
_ => false ,
325
327
}
326
328
} ) ;
Original file line number Diff line number Diff line change 712
712
713
713
pub struct vnode_info_path {
714
714
pub vip_vi: vnode_info,
715
- pub vip_path: [ :: c_char; :: MAXPATHLEN as usize ] ,
715
+ // Normally it's `vip_path: [::c_char; MAXPATHLEN]` but because libc supports an old rustc
716
+ // version, we go around this limitation like this.
717
+ pub vip_path: [ [ :: c_char; 32 ] ; 32 ] ,
716
718
}
717
719
718
720
pub struct proc_vnodepathinfo {
You can’t perform that action at this time.
0 commit comments