Solaris 7 w/ current CVS.
Tim Rice
tim at multitalents.net
Wed Aug 21 11:08:43 EST 2002
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
More information about the openssh-unix-dev
mailing list