autoconf check for socklen_t

Damien Miller djm at
Tue Dec 28 19:18:16 EST 1999

Hash: SHA1

On 28 Dec 1999, Darren Hall wrote:

> Here's a configure check to see if socklen_t is defined.  Even
> though my man pages on linux say accept(2) takes (int *) as it's 3rd
> arg, the sys/socket.h files begs to differ.

Thanks, applied. I am now typedefing (unsigned int) to socklen_t if
the definition is missing.

> If not defined (which is doesn't seem to be on AIX 4.2.1), it can
> be explicitly typedef'ed to (unsigned int).  Now do mainstream code
> changes get submitted back to the openbsd group, or would it be
> better to submit to this list?

For portability changes, it is best to send the via this list. Feel
free to send any other patches as well, I feed them back to the 
OpenBSD people if I think they are relevant.

> After defining all those variables to socklen_t, this should clean
> up the spurious errors spewed forth from AIX's native compiler,
> about the uncast connect, accept and bind calls.

Does 1.2.1pre22 (with your patch) work correctly on AIX?


- --
| "Bombay is 250ms from New York in the new world order" - Alan Cox
| Damien Miller -
| Email: djm at (home) -or- djm at (work)

Version: GnuPG v1.0.0 (GNU/Linux)
Comment: For info see


More information about the openssh-unix-dev mailing list