Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: AIX patch

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


Messages sorted by: Reverse Date, Date, Thread, Author