Skip to content

Commit 16b08e5

Browse files
committed
---
yaml --- r: 49893 b: refs/heads/auto c: b60c3bf h: refs/heads/master i: 49891: 24a9f57 v: v3
1 parent 6956b0b commit 16b08e5

File tree

3 files changed

+22
-7
lines changed

3 files changed

+22
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: 806732a70bbe5fec5121b630a957549a5ddd57e8
17+
refs/heads/auto: b60c3bfa4a95fecae2f28929f22f38865d7e5f79
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167

branches/auto/src/libcore/libc.rs

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,6 +1396,15 @@ pub mod funcs {
13961396
#[cfg(target_os = "android")]
13971397
#[cfg(target_os = "freebsd")]
13981398
unsafe fn readdir(dirp: *DIR) -> *dirent_t;
1399+
1400+
unsafe fn closedir(dirp: *DIR) -> c_int;
1401+
unsafe fn rewinddir(dirp: *DIR);
1402+
unsafe fn seekdir(dirp: *DIR, loc: c_long);
1403+
unsafe fn telldir(dirp: *DIR) -> c_long;
1404+
}
1405+
1406+
#[cfg(target_word_size = "64")]
1407+
pub extern {
13991408
// on OSX (particularly when running with a
14001409
// 64bit kernel), we have an issue where there
14011410
// are separate bindings for opendir and readdir,
@@ -1406,11 +1415,17 @@ pub mod funcs {
14061415
#[cfg(target_os = "macos")]
14071416
#[link_name = "readdir$INODE64"]
14081417
unsafe fn readdir(dirp: *DIR) -> *dirent_t;
1409-
1410-
unsafe fn closedir(dirp: *DIR) -> c_int;
1411-
unsafe fn rewinddir(dirp: *DIR);
1412-
unsafe fn seekdir(dirp: *DIR, loc: c_long);
1413-
unsafe fn telldir(dirp: *DIR) -> c_long;
1418+
}
1419+
#[cfg(target_word_size = "32")]
1420+
pub extern {
1421+
// on OSX (particularly when running with a
1422+
// 64bit kernel), we have an issue where there
1423+
// are separate bindings for opendir and readdir,
1424+
// which we have to explicitly link, as below.
1425+
#[cfg(target_os = "macos")]
1426+
unsafe fn opendir(dirname: *c_char) -> *DIR;
1427+
#[cfg(target_os = "macos")]
1428+
unsafe fn readdir(dirp: *DIR) -> *dirent_t;
14141429
}
14151430
}
14161431

branches/auto/src/libuv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 576ab1db8ea03889eb7b2274654afe7c5c867230
1+
Subproject commit 218ab86721eefd7b7e97fa6d9f95a80a1fa8686c

0 commit comments

Comments
 (0)