Solaris 7 w/ current CVS.

Ben Lindstrom mouring at etoh.eviladmin.org
Wed Aug 21 12:52:27 EST 2002


Guess we do this and if something breaks we will readdress.

- Ben

On Tue, 20 Aug 2002, Tim Rice wrote:

> On Tue, 20 Aug 2002, Ben Lindstrom wrote:
>
> >
> > Not sure about any other version, but I know sol7 lacks SIZE_T_MAX which
> > we are now using in -current.
> >
> > OpenBSD defines it as ULONG_MAX.   Pawing through the Solaris /usr/include
> > it stated it could be 'u_int' or 'u_long'.  Depends on if your are
> > compiling legacy stuff.
> >
> > I'm sure other OSes may encounter this issue (not tried Linux, but Redhat
> > 7.x does not define it), but what is the collective suggestion in regards
> > to detectin what size_t is.
>
> It looks like this would work for at least intel and sparc.
> #ifndef SIZE_T_MAX
> #define SIZE_T_MAX ULONG_MAX
> #endif
>
> On my platforms where size_t is 'u_int', UINT_MAX and ULONG_MAX are
> the same value anyway.
>
> >
> > For a work around locally I'm just defining SIZE_T_MAX to ULONG_MAX in my
> > local Solaris tree.
> >
> > - Ben
> >
> > _______________________________________________
> > openssh-unix-dev at mindrot.org mailing list
> > http://www.mindrot.org/mailman/listinfo/openssh-unix-dev
> >
>
> --
> Tim Rice				Multitalents	(707) 887-1469
> tim at multitalents.net
>
>
> _______________________________________________
> openssh-unix-dev at mindrot.org mailing list
> http://www.mindrot.org/mailman/listinfo/openssh-unix-dev
>




More information about the openssh-unix-dev mailing list