@@ -634,7 +634,7 @@ impl FileAttr {
634634 }
635635
636636 #[ cfg( any(
637- target_os = "vxworks" ,
637+ all ( target_os = "vxworks" , vxworks_lt_25_09 ) ,
638638 target_os = "espidf" ,
639639 target_os = "vita" ,
640640 target_os = "rtems" ,
@@ -643,7 +643,12 @@ impl FileAttr {
643643 SystemTime :: new ( self . stat . st_mtime as i64 , 0 )
644644 }
645645
646- #[ cfg( any( target_os = "horizon" , target_os = "hurd" , target_os = "nuttx" ) ) ]
646+ #[ cfg( any(
647+ target_os = "horizon" ,
648+ target_os = "hurd" ,
649+ target_os = "nuttx" ,
650+ all( target_os = "vxworks" , not( vxworks_lt_25_09) )
651+ ) ) ]
647652 pub fn modified ( & self ) -> io:: Result < SystemTime > {
648653 SystemTime :: new ( self . stat . st_mtim . tv_sec as i64 , self . stat . st_mtim . tv_nsec as i64 )
649654 }
@@ -669,7 +674,7 @@ impl FileAttr {
669674 }
670675
671676 #[ cfg( any(
672- target_os = "vxworks" ,
677+ all ( target_os = "vxworks" , vxworks_lt_25_09 ) ,
673678 target_os = "espidf" ,
674679 target_os = "vita" ,
675680 target_os = "rtems"
@@ -678,7 +683,12 @@ impl FileAttr {
678683 SystemTime :: new ( self . stat . st_atime as i64 , 0 )
679684 }
680685
681- #[ cfg( any( target_os = "horizon" , target_os = "hurd" , target_os = "nuttx" ) ) ]
686+ #[ cfg( any(
687+ target_os = "horizon" ,
688+ target_os = "hurd" ,
689+ target_os = "nuttx" ,
690+ all( target_os = "vxworks" , not( vxworks_lt_25_09) ) ,
691+ ) ) ]
682692 pub fn accessed ( & self ) -> io:: Result < SystemTime > {
683693 SystemTime :: new ( self . stat . st_atim . tv_sec as i64 , self . stat . st_atim . tv_nsec as i64 )
684694 }
0 commit comments