Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: AIX patch
- X-seq: zsh-workers 14979
- From: Andrej Borsenkow <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: AIX patch
- Date: Tue, 19 Jun 2001 22:48:40 +0400 (MSD)
- Cc: ZSH Workers Mailing List <zsh-workers@xxxxxxxxxx>
- In-reply-to: <1010619161132.ZM16333@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
On Tue, 19 Jun 2001, Bart Schaefer wrote:
> On Jun 19, 10:45am, Andrej Borsenkow wrote:
> }
> } Note, that it adds test for type of third argument to accept (that is used
> } in some other functions as well). It currently checks for size_t, unsigned
> } long and int (those I have on systems here and reported on AIX 4.x)
>
> Linux/gcc apparently has an actual `socklen_t' typedef. Probably should
> try that first.
>
> + for zsh_type in socklen_t int "unsigned long" size_t ; do
I had some considerations for testing for int first. If we hit some really
broken compiler that does not care about protoype mismatch we better have
the "most common" case first. It defaulted to int before - so let's stick
to int as much as possible. May be, I'm just plain paranoid. And the
whole needs check for general prototype support of course.
BTW Linux/gcc is pretty vague definition :-) On Mandrake cooker it finds
size_t.
-andrej
Messages sorted by:
Reverse Date,
Date,
Thread,
Author