Skip to content

Commit 11b1214

Browse files
committed
add fdopendir
1 parent 863fb88 commit 11b1214

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/unix/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,10 @@ extern {
328328
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),
329329
link_name = "fdopen$UNIX2003")]
330330
pub fn fdopen(fd: ::c_int, mode: *const c_char) -> *mut ::FILE;
331+
332+
#[cfg(not(any(target_os = "macos", target_os = "ios")))]
333+
pub fn fdopendir(fd: ::c_int) -> *mut ::DIR;
334+
331335
pub fn fileno(stream: *mut ::FILE) -> ::c_int;
332336

333337
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),

0 commit comments

Comments
 (0)