android: fix termux build

pull/4159/head
Delyan Angelov 2020-03-29 21:54:21 +03:00 committed by GitHub
parent ec025f2020
commit 7785583b34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -4,11 +4,6 @@ import os
#include <sys/ioctl.h> #include <sys/ioctl.h>
$if solaris {
#include <unistd.h> // ioctl
#include <sys/termios.h> // TIOCGWINSZ
}
pub struct C.winsize { pub struct C.winsize {
pub: pub:
ws_row u16 ws_row u16

View File

@ -0,0 +1,5 @@
module term
#include <unistd.h> // ioctl
#include <sys/termios.h> // TIOCGWINSZ