File tree 4 files changed +2
-9
lines changed
4 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ pub trait MetadataExt {
63
63
impl MetadataExt for Metadata {
64
64
#[ allow( deprecated) ]
65
65
fn as_raw_stat ( & self ) -> & raw:: stat {
66
- unsafe { & * ( self . as_inner ( ) . as_inner ( ) as * const libc:: stat64 as * const raw:: stat ) }
66
+ unsafe { & * ( self . as_inner ( ) . as_inner ( ) as * const libc:: stat as * const raw:: stat ) }
67
67
}
68
68
fn st_dev ( & self ) -> u64 {
69
69
self . as_inner ( ) . as_inner ( ) . st_dev as u64
Original file line number Diff line number Diff line change 1
1
//! Emscripten-specific raw type definitions
2
- //! This is basically exactly the same as the linux definitions,
3
- //! except using the musl-specific stat64 structure in liblibc.
4
2
5
3
#![ stable( feature = "raw_ext" , since = "1.1.0" ) ]
6
4
#![ deprecated(
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ mod tests;
5
5
6
6
#[ cfg( not( any(
7
7
target_os = "linux" ,
8
- target_os = "emscripten" ,
9
8
target_os = "l4re" ,
10
9
target_os = "android" ,
11
10
target_os = "hurd" ,
@@ -14,7 +13,6 @@ use libc::off_t as off64_t;
14
13
#[ cfg( any(
15
14
target_os = "android" ,
16
15
target_os = "linux" ,
17
- target_os = "emscripten" ,
18
16
target_os = "l4re" ,
19
17
target_os = "hurd" ,
20
18
) ) ]
Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ use libc::readdir as readdir64;
34
34
#[ cfg( not( any(
35
35
target_os = "android" ,
36
36
target_os = "linux" ,
37
- target_os = "emscripten" ,
38
37
target_os = "solaris" ,
39
38
target_os = "illumos" ,
40
39
target_os = "l4re" ,
@@ -48,7 +47,7 @@ use libc::readdir as readdir64;
48
47
use libc:: readdir_r as readdir64_r;
49
48
#[ cfg( any( all( target_os = "linux" , not( target_env = "musl" ) ) , target_os = "hurd" ) ) ]
50
49
use libc:: readdir64;
51
- #[ cfg( any ( target_os = "emscripten" , target_os = " l4re") ) ]
50
+ #[ cfg( target_os = "l4re" ) ]
52
51
use libc:: readdir64_r;
53
52
use libc:: { c_int, mode_t} ;
54
53
#[ cfg( target_os = "android" ) ]
@@ -58,7 +57,6 @@ use libc::{
58
57
} ;
59
58
#[ cfg( not( any(
60
59
all( target_os = "linux" , not( target_env = "musl" ) ) ,
61
- target_os = "emscripten" ,
62
60
target_os = "l4re" ,
63
61
target_os = "android" ,
64
62
target_os = "hurd" ,
@@ -69,7 +67,6 @@ use libc::{
69
67
} ;
70
68
#[ cfg( any(
71
69
all( target_os = "linux" , not( target_env = "musl" ) ) ,
72
- target_os = "emscripten" ,
73
70
target_os = "l4re" ,
74
71
target_os = "hurd"
75
72
) ) ]
You can’t perform that action at this time.
0 commit comments