Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Compilation fix for AIX (missing consts)
- X-seq: zsh-workers 29058
- From: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
- To: Jérémie Roquet <arkanosis@xxxxxxxxx>
- Subject: Re: [PATCH] Compilation fix for AIX (missing consts)
- Date: Tue, 26 Apr 2011 12:16:19 -0700
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=sEoloNFvoGg8y/5etR5z9fPbn+OYDW0TIYVk0kxJI/I=; b=W1RfRnc4R5XjPqVRwnjEL86brbPF5aiY+BPoDs/2/V/CsTsQ7bai4hKNYQmN70xENX HDnPVzj21cRLTcYbUk08GOTFHLoTwhZjv8GHc3M4HTC/Gv0yX7JkRlW7GJcYorQvhWyP 6x81siQ9JxbfycRBK9DhZznGLsHTrgVcudD64=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=BXtn3UKEvUJg5d8DaG8617lucRCe79wCtv7E78QdWPVNvMIxW1XQ/nvZ1rII/t3Za5 OwPC4UrWB8e/SralQltrVb1G6DuwgSvIODaWw6ySHfdSdSFN3qaxeFTdZcE0rRl+Yj/7 /XkbLw2AodDSQOjj9mnzWPl36kCRJGSWdHC/A=
- In-reply-to: <BANLkTi=wtU3LGu3vPbcD_DH5EQd=X9g0tw@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <BANLkTi=wtU3LGu3vPbcD_DH5EQd=X9g0tw@mail.gmail.com>
- Sender: 4wayned@xxxxxxxxx
2011/4/26 Jérémie Roquet <arkanosis@xxxxxxxxx>:
> 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…
Yeah, that section doesn't get included on Linux, since it has the
prototypes available in the public term.h and termcap.h. I
(temporarily) commented out the #if/#endif lines and made all the
changes necessary to get it to compile without error, which also
required adding a "const" to the 3 "char *id" args that you didn't
change. Since that section of the file is only supposed to be used
when the public prototypes aren't available, that should be better
than what we had before.
Does AIX have a conflicting header file? Or just the calls weren't
matching the prototypes? If the former, you may want to look into why
the Src/Modules/termcap.c code isn't setting either USES_TERMCAP_H or
USES_TERM_H for AIX.
..wayne..
Messages sorted by:
Reverse Date,
Date,
Thread,
Author