1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-06-18 17:49:49 +02: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

@ -1,3 +1,8 @@
2008-11-27 Peter Stephenson <pws@csr.com>
* 26095: Src/utils.c: failed to compile if TIOCGWINSZ wasn't
defined.
2008-11-26 Peter Stephenson <pws@csr.com>
* 26090: Test/C02cond.ztst: [[ -r ... ]] on Cygwin succeeds

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