Fix 64 bit build for musl and android (#90)
This commit is contained in:
parent
04f6bcd677
commit
23ef0260dd
|
@ -31,19 +31,11 @@ fn tiocgwinsz() -> u32 {
|
|||
}
|
||||
|
||||
#[cfg(any(target_env = "musl", target_os = "android"))]
|
||||
#[cfg(target_pointer_width = "32")]
|
||||
fn tiocgwinsz() -> i32 {
|
||||
use termios::TIOCGWINSZ;
|
||||
TIOCGWINSZ as i32
|
||||
}
|
||||
|
||||
#[cfg(target_os = "android")]
|
||||
#[cfg(target_pointer_width = "64")]
|
||||
fn tiocgwinsz() -> i64 {
|
||||
use termios::TIOCGWINSZ;
|
||||
TIOCGWINSZ as i64
|
||||
}
|
||||
|
||||
/// Get the size of the terminal.
|
||||
#[cfg(not(target_os = "redox"))]
|
||||
pub fn terminal_size() -> io::Result<(u16, u16)> {
|
||||
|
|
Loading…
Reference in New Issue