Fix 64 bit build for musl and android (#90)

This commit is contained in:
Loïc Damien 2017-02-25 20:17:54 +01:00 committed by ticki
parent 04f6bcd677
commit 23ef0260dd
1 changed files with 0 additions and 8 deletions

View File

@ -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)> {