@@ -55,11 +55,16 @@ impl Metadata {
55
55
#[ cfg( not( windows) ) ]
56
56
{
57
57
Some ( system_time_from_secs_nanos (
58
+ #[ cfg( not( target_os = "aix" ) ) ]
58
59
self . 0 . st_mtime . try_into ( ) . ok ( ) ?,
59
- #[ cfg( not( target_os = "netbsd" ) ) ]
60
+ #[ cfg( target_os = "aix" ) ]
61
+ self . 0 . st_mtim . tv_sec . try_into ( ) . ok ( ) ?,
62
+ #[ cfg( not( any( target_os = "netbsd" , target_os = "aix" ) ) ) ]
60
63
self . 0 . st_mtime_nsec . try_into ( ) . ok ( ) ?,
61
64
#[ cfg( target_os = "netbsd" ) ]
62
65
self . 0 . st_mtimensec . try_into ( ) . ok ( ) ?,
66
+ #[ cfg( target_os = "aix" ) ]
67
+ self . 0 . st_mtim . tv_nsec . try_into ( ) . ok ( ) ?,
63
68
) )
64
69
}
65
70
#[ cfg( windows) ]
@@ -74,11 +79,16 @@ impl Metadata {
74
79
#[ cfg( not( windows) ) ]
75
80
{
76
81
Some ( system_time_from_secs_nanos (
82
+ #[ cfg( not( target_os = "aix" ) ) ]
77
83
self . 0 . st_ctime . try_into ( ) . ok ( ) ?,
78
- #[ cfg( not( target_os = "netbsd" ) ) ]
84
+ #[ cfg( target_os = "aix" ) ]
85
+ self . 0 . st_ctim . tv_sec . try_into ( ) . ok ( ) ?,
86
+ #[ cfg( not( any( target_os = "netbsd" , target_os = "aix" ) ) ) ]
79
87
self . 0 . st_ctime_nsec . try_into ( ) . ok ( ) ?,
80
88
#[ cfg( target_os = "netbsd" ) ]
81
89
self . 0 . st_ctimensec . try_into ( ) . ok ( ) ?,
90
+ #[ cfg( target_os = "aix" ) ]
91
+ self . 0 . st_ctim . tv_nsec . try_into ( ) . ok ( ) ?,
82
92
) )
83
93
}
84
94
#[ cfg( windows) ]
0 commit comments