File tree 1 file changed +6
-10
lines changed
1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -3695,18 +3695,12 @@ pub mod funcs {
3695
3695
// opendir$INODE64, etc. but for some reason rustc
3696
3696
// doesn't link it correctly on i686, so we're going
3697
3697
// through a C function that mysteriously does work.
3698
- pub unsafe fn opendir ( dirname : * c_char ) -> * DIR {
3699
- rust_opendir ( dirname)
3700
- }
3701
- pub unsafe fn readdir_r ( dirp : * DIR ,
3702
- entry : * mut dirent_t ,
3703
- result : * mut * mut dirent_t ) -> c_int {
3704
- rust_readdir_r ( dirp, entry, result)
3705
- }
3706
3698
3707
3699
extern {
3708
- fn rust_opendir ( dirname : * c_char ) -> * DIR ;
3709
- fn rust_readdir_r ( dirp : * DIR , entry : * mut dirent_t ,
3700
+ #[ link_name="rust_opendir" ]
3701
+ pub fn opendir ( dirname : * c_char ) -> * DIR ;
3702
+ #[ link_name="rust_readdir_r" ]
3703
+ pub fn readdir_r ( dirp : * DIR , entry : * mut dirent_t ,
3710
3704
result : * mut * mut dirent_t ) -> c_int ;
3711
3705
}
3712
3706
@@ -4321,3 +4315,5 @@ pub mod funcs {
4321
4315
}
4322
4316
}
4323
4317
}
4318
+
4319
+ #[ test] fn work_on_windows ( ) { } // FIXME #10872 needed for a happy windows
You can’t perform that action at this time.
0 commit comments