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;
5151pub const MSG_MORE : :: c_int = 0 ;
5252pub const MSG_NOSIGNAL : :: c_int = 0 ;
5353
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;
5353pub const MSG_MORE : :: c_int = 0 ;
5454pub const MSG_NOSIGNAL : :: c_int = 0 ;
5555
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" {
107107 pub fn eventfd ( initval : :: c_uint , flags : :: c_int ) -> :: c_int ;
108108}
109109
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 2424 pub st_blocks: :: blkcnt_t,
2525 pub st_spare4: [ :: c_long; 2usize ] ,
2626 }
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+ }
2733}
Original file line number Diff line number Diff line change @@ -266,3 +266,5 @@ extern "C" {
266266
267267 pub fn gethostid ( ) -> :: c_long ;
268268}
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! {
786786 }
787787}
788788
789- cfg_if ! {
790- if #[ cfg( not( target_os = "vita" ) ) ] {
791- mod dirent;
792- pub use self :: dirent:: * ;
793- }
794- }
795-
796789cfg_if ! {
797790 if #[ cfg( libc_align) ] {
798791 #[ macro_use]
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ pub type wchar_t = ::c_int;
55pub type c_long = i32 ;
66pub type c_ulong = u32 ;
77
8- pub use crate :: unix:: newlib:: generic:: { sigset_t, stat} ;
8+ pub use crate :: unix:: newlib:: generic:: { dirent , sigset_t, stat} ;
99
1010// the newlib shipped with devkitPPC does not support the following components:
1111// - sockaddr
You can’t perform that action at this time.
0 commit comments