Skip to content

Commit d6229d4

Browse files
emberianalexcrichton
authored andcommitted
---
yaml --- r: 109976 b: refs/heads/master c: 06ad5eb h: refs/heads/master v: v3
1 parent b7806ef commit d6229d4

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 308c03501a9a49d058f2ad76dd17a4e593ce7be7
2+
refs/heads/master: 06ad5eb459f1072d79a815210d69af55ef174d20
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: c7fac4471201977fdb1c0c0a26c87287e12dc644
55
refs/heads/try: f64fdf524a434f0e5cd0bc91d09c144723f3c90d

trunk/src/liblibc/lib.rs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3695,18 +3695,12 @@ pub mod funcs {
36953695
// opendir$INODE64, etc. but for some reason rustc
36963696
// doesn't link it correctly on i686, so we're going
36973697
// 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-
}
37063698

37073699
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,
37103704
result: *mut *mut dirent_t) -> c_int;
37113705
}
37123706

@@ -4321,3 +4315,5 @@ pub mod funcs {
43214315
}
43224316
}
43234317
}
4318+
4319+
#[test] fn work_on_windows() { } // FIXME #10872 needed for a happy windows

0 commit comments

Comments
 (0)