From 0bd8fbc9a876c71d64016e17102d936439126ab5 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Mon, 4 Apr 2022 19:25:12 +0300 Subject: [PATCH] term, term.ui: fix a panic on !=linux unixes when running examples/term.ui/ --- vlib/term/declarations_default.c.v | 2 +- vlib/term/ui/declarations_default.c.v | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vlib/term/declarations_default.c.v b/vlib/term/declarations_default.c.v index ab55adf25f..8cbe210662 100644 --- a/vlib/term/declarations_default.c.v +++ b/vlib/term/declarations_default.c.v @@ -6,5 +6,5 @@ mut: c_oflag int c_cflag int c_lflag int - c_cc [10]int + c_cc [20]byte } diff --git a/vlib/term/ui/declarations_default.c.v b/vlib/term/ui/declarations_default.c.v index 27c1053c11..c5729e787e 100644 --- a/vlib/term/ui/declarations_default.c.v +++ b/vlib/term/ui/declarations_default.c.v @@ -1,10 +1,10 @@ module ui -struct C.termios { +pub struct C.termios { mut: c_iflag int c_oflag int c_cflag int c_lflag int - c_cc [10]int + c_cc [20]byte }