Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Os2



On Thu, 27 Nov 2008 17:33:49 +0100
Elbert Pol <e.pol@xxxxxxxxx> wrote:
> Hello,
> 
> I've try to port zsh to os2 and it fails with the "make"
> 
> I use Gcc v4.32
> 
> utils.c: In function 'adjustwinsize':
> utils.c:1537: error: 'struct ttyinfo' has no member named 'winsize'
> utils.c:1538: error: 'struct ttyinfo' has no member named 'winsize'
> make.exe[2]: *** [utils.o] Error 1
> make.exe[2]: Leaving directory `U:/zsh-4.3.9/Src'
> make.exe[1]: *** [modobjs] Error 2
> make.exe[1]: Leaving directory `U:/zsh-4.3.9/Src'
> make.exe: *** [all] Error 1
> Any thoughts ?

That's a bug in the source code.

Index: Src/utils.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/utils.c,v
retrieving revision 1.206
diff -u -r1.206 utils.c
--- Src/utils.c	30 Oct 2008 15:34:18 -0000	1.206
+++ Src/utils.c	27 Nov 2008 16:59:16 -0000
@@ -1534,8 +1534,10 @@
 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) {


-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



Messages sorted by: Reverse Date, Date, Thread, Author