mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-29 17:31:02 +01:00
26095: compilation error if TIOCGWINSZ not defined
This commit is contained in:
parent
baa1145609
commit
94b39fe195
2 changed files with 7 additions and 0 deletions
|
|
@ -1534,8 +1534,10 @@ void
|
|||
adjustwinsize(int from)
|
||||
{
|
||||
static int getwinsz = 1;
|
||||
#ifdef TIOCGWINSZ
|
||||
int ttyrows = shttyinfo.winsize.ws_row;
|
||||
int ttycols = shttyinfo.winsize.ws_col;
|
||||
#endif
|
||||
int resetzle = 0;
|
||||
|
||||
if (getwinsz || from == 1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue