about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-11-27 17:05:42 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-11-27 17:05:42 +0000
commit94b39fe1959c7ce038c2aab598340eadf1441b98 (patch)
treeecaafb3f6dd62518538814ac760977fcc5387ee4 /Src
parentbaa1145609a2dd94cddaf9220e0b0f2ec85371ac (diff)
downloadzsh-94b39fe1959c7ce038c2aab598340eadf1441b98.tar.gz
zsh-94b39fe1959c7ce038c2aab598340eadf1441b98.tar.xz
zsh-94b39fe1959c7ce038c2aab598340eadf1441b98.zip
26095: compilation error if TIOCGWINSZ not defined
Diffstat (limited to 'Src')
-rw-r--r--Src/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Src/utils.c b/Src/utils.c
index 550f7bfa7..d66de8d2f 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -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) {