1
0
Fork 0
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:
Peter Stephenson 2008-11-27 17:05:42 +00:00
parent baa1145609
commit 94b39fe195
2 changed files with 7 additions and 0 deletions

View file

@ -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) {