diff --git a/src/unix/mod.rs b/src/unix/mod.rs index 9b39050e6cc17..11e4375f062c0 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -328,6 +328,10 @@ extern { #[cfg_attr(all(target_os = "macos", target_arch = "x86"), link_name = "fdopen$UNIX2003")] pub fn fdopen(fd: ::c_int, mode: *const c_char) -> *mut ::FILE; + + #[cfg(not(any(target_os = "macos", target_os = "ios")))] + pub fn fdopendir(fd: ::c_int) -> *mut ::DIR; + pub fn fileno(stream: *mut ::FILE) -> ::c_int; #[cfg_attr(all(target_os = "macos", target_arch = "x86"),