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) {
321321 // FIXME: the array size has been changed since macOS 10.15 ([8] -> [7]).
322322 ( "statfs" , "f_reserved" ) => true ,
323323 ( "__darwin_arm_neon_state64" , "__v" ) => true ,
324+ // MAXPATHLEN is too big for auto-derive traits on arrays.
325+ ( "vnode_info_path" , "vip_path" ) => true ,
324326 _ => false ,
325327 }
326328 } ) ;
Original file line number Diff line number Diff line change 712712
713713 pub struct vnode_info_path {
714714 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 ] ,
716718 }
717719
718720 pub struct proc_vnodepathinfo {
You can’t perform that action at this time.
0 commit comments