diff --git a/vlib/term/term_nix.v b/vlib/term/term_nix.v index b4c3cee361..251b4c8190 100644 --- a/vlib/term/term_nix.v +++ b/vlib/term/term_nix.v @@ -4,11 +4,6 @@ import os #include -$if solaris { -#include // ioctl -#include // TIOCGWINSZ -} - pub struct C.winsize { pub: ws_row u16 diff --git a/vlib/term/term_solaris.v b/vlib/term/term_solaris.v new file mode 100644 index 0000000000..0ef5cb0caf --- /dev/null +++ b/vlib/term/term_solaris.v @@ -0,0 +1,5 @@ +module term + +#include // ioctl + +#include // TIOCGWINSZ