From: River Tarnell <river@wikimedia.org>
To: zsh-workers@sunsite.dk
Subject: 4.3.4 build fails on UnixWare 7
Date: Wed, 22 Aug 2007 05:38:59 +0100 [thread overview]
Message-ID: <200708220539.03136.river@wikimedia.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1064 bytes --]
hello,
i am unable to build zsh 4.3.4 on UnixWare 7.1.3. the following error occurs:
cc -c -I. -DHAVE_CONFIG_H -O -o zle_refresh.o zle_refresh.c
UX:acomp: ERROR: "zle_refresh.c", line 182: integral constant expression
expected
*** Error code 1 (bu21)
UX:make: ERROR: fatal error.
UnixWare defines MB_CUR_MAX as:
#define MB_CUR_MAX ((int)__ctype[520])
i was able to fix this with the following diff:
*** zle_refresh.c.old Wed Aug 22 05:25:37 2007
--- zle_refresh.c Wed Aug 22 05:27:58 2007
***************
*** 179,187 ****
zwcputc(ZLE_INT_T c)
{
#ifdef MULTIBYTE_SUPPORT
! char mbtmp[MB_CUR_MAX + 1];
mbstate_t mbstate;
int i;
if (c == WEOF)
return;
--- 179,189 ----
zwcputc(ZLE_INT_T c)
{
#ifdef MULTIBYTE_SUPPORT
! char *mbtmp;
mbstate_t mbstate;
int i;
+
+ mbtmp = alloca(MB_CUR_MAX + 1);
if (c == WEOF)
return;
however, use of alloca seems suboptimal (perhaps malloc could be used
instead).
- river.
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2007-08-22 4:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-22 4:38 River Tarnell [this message]
2007-08-22 9:05 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200708220539.03136.river@wikimedia.org \
--to=river@wikimedia.org \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).