File tree Expand file tree Collapse file tree 8 files changed +12
-18
lines changed Expand file tree Collapse file tree 8 files changed +12
-18
lines changed Original file line number Diff line number Diff line change @@ -51,4 +51,4 @@ pub const MSG_WAITALL: ::c_int = 0;
51
51
pub const MSG_MORE : :: c_int = 0 ;
52
52
pub const MSG_NOSIGNAL : :: c_int = 0 ;
53
53
54
- pub use crate :: unix:: newlib:: generic:: { sigset_t, stat} ;
54
+ pub use crate :: unix:: newlib:: generic:: { dirent , sigset_t, stat} ;
Original file line number Diff line number Diff line change @@ -53,4 +53,4 @@ pub const MSG_WAITALL: ::c_int = 0;
53
53
pub const MSG_MORE : :: c_int = 0 ;
54
54
pub const MSG_NOSIGNAL : :: c_int = 0 ;
55
55
56
- pub use crate :: unix:: newlib:: generic:: { sigset_t, stat} ;
56
+ pub use crate :: unix:: newlib:: generic:: { dirent , sigset_t, stat} ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -107,4 +107,4 @@ extern "C" {
107
107
pub fn eventfd ( initval : :: c_uint , flags : :: c_int ) -> :: c_int ;
108
108
}
109
109
110
- pub use crate :: unix:: newlib:: generic:: { sigset_t, stat} ;
110
+ pub use crate :: unix:: newlib:: generic:: { dirent , sigset_t, stat} ;
Original file line number Diff line number Diff line change 24
24
pub st_blocks: :: blkcnt_t,
25
25
pub st_spare4: [ :: c_long; 2usize ] ,
26
26
}
27
+
28
+ pub struct dirent {
29
+ pub d_ino: :: ino_t,
30
+ pub d_type: :: c_uchar,
31
+ pub d_name: [ :: c_char; 256usize ] ,
32
+ }
27
33
}
Original file line number Diff line number Diff line change @@ -266,3 +266,5 @@ extern "C" {
266
266
267
267
pub fn gethostid ( ) -> :: c_long ;
268
268
}
269
+
270
+ pub use crate :: unix:: newlib:: generic:: dirent;
Original file line number Diff line number Diff line change @@ -786,13 +786,6 @@ cfg_if! {
786
786
}
787
787
}
788
788
789
- cfg_if ! {
790
- if #[ cfg( not( target_os = "vita" ) ) ] {
791
- mod dirent;
792
- pub use self :: dirent:: * ;
793
- }
794
- }
795
-
796
789
cfg_if ! {
797
790
if #[ cfg( libc_align) ] {
798
791
#[ macro_use]
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ pub type wchar_t = ::c_int;
5
5
pub type c_long = i32 ;
6
6
pub type c_ulong = u32 ;
7
7
8
- pub use crate :: unix:: newlib:: generic:: { sigset_t, stat} ;
8
+ pub use crate :: unix:: newlib:: generic:: { dirent , sigset_t, stat} ;
9
9
10
10
// the newlib shipped with devkitPPC does not support the following components:
11
11
// - sockaddr
You can’t perform that action at this time.
0 commit comments