We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4f8986 commit ccdc5ebCopy full SHA for ccdc5eb
src/unix/mod.rs
@@ -753,6 +753,8 @@ extern {
753
pub fn tcgetpgrp(fd: ::c_int) -> pid_t;
754
pub fn tcsetpgrp(fd: ::c_int, pgrp: ::pid_t) -> ::c_int;
755
pub fn ttyname(fd: ::c_int) -> *mut c_char;
756
+ #[cfg_attr(all(target_os = "macos", target_arch = "x86"),
757
+ link_name = "ttyname_r$UNIX2003")]
758
pub fn ttyname_r(fd: ::c_int,
759
buf: *mut c_char, buflen: ::size_t) -> ::c_int;
760
pub fn unlink(c: *const c_char) -> ::c_int;
0 commit comments