From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25037 invoked by alias); 26 Apr 2011 13:46:51 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29053 Received: (qmail 29140 invoked from network); 26 Apr 2011 13:46:49 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.215.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=loFlMj4KXl9SUjOmVGK9Ye+iR0G5tluavMa89O6GoHg=; b=lcMgsaJCDGKpq0onzv9TFK1n0l6yHDs3XpKOk6DjZqeDDvMzCV1hTRO4Bcr+6gPB1y ITOYwUhv4swawBL8rtcx2DJcgKKnLX781kbX7NSRUUEUmxZsntkETMxI/2L6H/J3zTyB cqO0waFuzBASDzsYpjjWUpHbwBChP9UlSIKDA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; b=I9m5nuxa5j3oXL6lAilNvoYNWnm62exP1mlqCStlpzjYkFR/E8UjLeb0JnKlPW0EMq ojXxsn73RGWK/1gDS9Rw9Kg6zFSBDPX2rjbYXaXVlYaQmyLeKMPLKUkcfw9lKDqOZOdH j8H+XrCM5FNBBIGgy8NYuKGg+YXIwSwIDCcBw= MIME-Version: 1.0 From: =?UTF-8?B?SsOpcsOpbWllIFJvcXVldA==?= Date: Tue, 26 Apr 2011 15:33:52 +0200 Message-ID: Subject: [PATCH] Compilation fix for AIX (missing consts) To: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, I've had to fix the source to compile zsh on AIX. It looks like the protos were wrong anyway, but gcc doesn't complain on Linux=E2=80=A6 I'm not sure it doesn't break some other platform, but at least these are the right protos for AIX, Linux and FreeBSD. Any thoughts on this? Best regards, --- diff --git a/Src/prototypes.h b/Src/prototypes.h index 07fe2d0..401dccf 100644 --- a/Src/prototypes.h +++ b/Src/prototypes.h @@ -34,12 +34,12 @@ char *calloc _((size_t, size_t)); #endif #if !(defined(USES_TERMCAP_H) || defined(USES_TERM_H)) -extern int tgetent _((char *bp, char *name)); +extern int tgetent _((char *bp, const char *name)); extern int tgetnum _((char *id)); extern int tgetflag _((char *id)); extern char *tgetstr _((char *id, char **area)); -extern char *tgoto _((char *cm, int destcol, int destline)); -extern int tputs _((char *cp, int affcnt, int (*outc) (int))); +extern char *tgoto _((const char *cm, int destcol, int destline)); +extern int tputs _((const char *cp, int affcnt, int (*outc) (int))); #endif /* MISSING PROTOTYPES FOR VARIOUS OPERATING SYSTEMS */ --=20 J=C3=A9r=C3=A9mie