File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -3663,18 +3663,12 @@ pub mod funcs {
3663
3663
// opendir$INODE64, etc. but for some reason rustc
3664
3664
// doesn't link it correctly on i686, so we're going
3665
3665
// through a C function that mysteriously does work.
3666
- pub unsafe fn opendir ( dirname : * c_char ) -> * DIR {
3667
- rust_opendir ( dirname)
3668
- }
3669
- pub unsafe fn readdir_r ( dirp : * DIR ,
3670
- entry : * mut dirent_t ,
3671
- result : * mut * mut dirent_t ) -> c_int {
3672
- rust_readdir_r ( dirp, entry, result)
3673
- }
3674
3666
3675
3667
extern {
3676
- fn rust_opendir ( dirname : * c_char ) -> * DIR ;
3677
- fn rust_readdir_r ( dirp : * DIR , entry : * mut dirent_t ,
3668
+ #[ link_name="rust_opendir" ]
3669
+ pub fn opendir ( dirname : * c_char ) -> * DIR ;
3670
+ #[ link_name="rust_readdir_r" ]
3671
+ pub fn readdir_r ( dirp : * DIR , entry : * mut dirent_t ,
3678
3672
result : * mut * mut dirent_t ) -> c_int ;
3679
3673
}
3680
3674
@@ -4271,4 +4265,4 @@ pub mod funcs {
4271
4265
}
4272
4266
}
4273
4267
4274
- #[ test] fn work_on_windows ( ) { } // this is needed to make rustc happy on windows
4268
+ #[ test] fn work_on_windows ( ) { } // FIXME #10872 needed for a happy windows
You can’t perform that action at this time.
0 commit comments