Skip to content
Snippets Groups Projects
Commit 23ef0260 authored by Loïc Damien's avatar Loïc Damien Committed by ticki
Browse files

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

parent 04f6bcd6
No related branches found
No related tags found
No related merge requests found
......@@ -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)> {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment