term: Solaris headers

pull/4072/head
fantassin 2020-03-18 23:07:43 -07:00 committed by GitHub
parent cc847f83a8
commit 5824d28a03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,13 @@ module term
import os 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