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:
parent
baa1145609
commit
94b39fe195
|
@ -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
|
||||
|
|
|
@ -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…
Reference in New Issue