Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Os2
- X-seq: zsh-workers 26095
- From: Peter Stephenson <pws@xxxxxxx>
- To: Elbert Pol <e.pol@xxxxxxxxx>, zsh-workers@xxxxxxxxxx
- Subject: Re: Os2
- Date: Thu, 27 Nov 2008 17:03:36 +0000
- In-reply-to: <492ECBED.6020402@xxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Organization: CSR
- References: <492ECBED.6020402@xxxxxxxxx>
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