socklen_t - where?

Tim Rice tim at multitalents.net
Sat Nov 10 10:54:43 EST 2001


On Sat, 10 Nov 2001, Gert Doering wrote:

> Hi,
>
> openssh_cvs as of today, SCO Open Server 3.0, socklen_t
>
> this typedef doesn't exist on SCO OSR 3, and "configure" properly detects
> this, leading to
>
> /* #undef HAVE_SOCKLEN_T */

Run autoreconf instead of just autoconf to tune up config.h.in

>
> in config.h.
>
> Problem: I can't find any place where this is actually being used?  I'd
> expect something like
>
> #ifndef HAVE_SOCKLEN_T
> typdef int socklen_t;
> #endif

You will see
	/* type to use in place of socklen_t if not defined */
	#define socklen_t int
in config.h after running configure.

> ("int" is what the relevant functions use here, checked vs. the man pages)
> - but there isn't anything.
>
> Which would be the "right" header file to add such things?  Then I'll just
> do it and send in a patch with all the necessary changes for SCO OSR 3...

SCO OSR 3 works fine here on the CVS code.

>
> gert
>

-- 
Tim Rice				Multitalents	(707) 887-1469
tim at multitalents.net





More information about the openssh-unix-dev mailing list