@@ -60,7 +60,7 @@ use crate::fs::Timestamps;
60
60
) ) ) ]
61
61
use crate :: fs:: { Dev , FileType } ;
62
62
use crate :: fs:: { Mode , OFlags , SeekFrom , Stat } ;
63
- #[ cfg( not( any ( target_os = "redox" , target_os = " wasi") ) ) ]
63
+ #[ cfg( not( target_os = "wasi" ) ) ]
64
64
use crate :: fs:: { StatVfs , StatVfsMountFlags } ;
65
65
use crate :: io;
66
66
#[ cfg( all( target_env = "gnu" , fix_y2038) ) ]
@@ -271,7 +271,7 @@ pub(crate) fn statfs(filename: &CStr) -> io::Result<StatFs> {
271
271
}
272
272
}
273
273
274
- #[ cfg( not( any ( target_os = "redox" , target_os = " wasi") ) ) ]
274
+ #[ cfg( not( target_os = "wasi" ) ) ]
275
275
#[ inline]
276
276
pub ( crate ) fn statvfs ( filename : & CStr ) -> io:: Result < StatVfs > {
277
277
unsafe {
@@ -1591,7 +1591,7 @@ pub(crate) fn fstatfs(fd: BorrowedFd<'_>) -> io::Result<StatFs> {
1591
1591
}
1592
1592
}
1593
1593
1594
- #[ cfg( not( any ( target_os = "redox" , target_os = " wasi") ) ) ]
1594
+ #[ cfg( not( target_os = "wasi" ) ) ]
1595
1595
pub ( crate ) fn fstatvfs ( fd : BorrowedFd < ' _ > ) -> io:: Result < StatVfs > {
1596
1596
let mut statvfs = MaybeUninit :: < c:: statvfs > :: uninit ( ) ;
1597
1597
unsafe {
@@ -1600,7 +1600,7 @@ pub(crate) fn fstatvfs(fd: BorrowedFd<'_>) -> io::Result<StatVfs> {
1600
1600
}
1601
1601
}
1602
1602
1603
- #[ cfg( not( any ( target_os = "redox" , target_os = " wasi") ) ) ]
1603
+ #[ cfg( not( target_os = "wasi" ) ) ]
1604
1604
fn libc_statvfs_to_statvfs ( from : c:: statvfs ) -> StatVfs {
1605
1605
StatVfs {
1606
1606
f_bsize : from. f_bsize as u64 ,
0 commit comments