fixup! Add ttyname_r
Add cfg_attr
This commit is contained in:
parent
f4f8986fed
commit
ccdc5ebc2d
@ -753,6 +753,8 @@ extern {
|
||||
pub fn tcgetpgrp(fd: ::c_int) -> pid_t;
|
||||
pub fn tcsetpgrp(fd: ::c_int, pgrp: ::pid_t) -> ::c_int;
|
||||
pub fn ttyname(fd: ::c_int) -> *mut c_char;
|
||||
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),
|
||||
link_name = "ttyname_r$UNIX2003")]
|
||||
pub fn ttyname_r(fd: ::c_int,
|
||||
buf: *mut c_char, buflen: ::size_t) -> ::c_int;
|
||||
pub fn unlink(c: *const c_char) -> ::c_int;
|
||||
|
Loading…
Reference in New Issue
Block a user