mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
term: Solaris headers
This commit is contained in:
parent
cc847f83a8
commit
5824d28a03
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user