On Fri, Dec 22, 2006 at 05:34:08PM -0500, Mike Frysinger wrote:
> On Friday 22 December 2006 10:58, Andy Polyakov wrote:
> > > right now you need to include sys/types.h yourself before trying to
> > > include openssl/sha.h or the build fails ... this patch does what some of
> > > other openssl headers do and include sys/types.h properly
> >
> > This is about size_t, isn't it?
>
> yes
>
> > <sys/types.h> is wrong one to include.
> > <stddef.h> is one required by standard and is universally available.
>
> i guess that depends on your definition of "wrong" ... POSIX requires that
> sys/types.h define size_t
>From SUSv3:
The <stddef.h> header shall define the following types:
[...]
size_t
Unsigned integer type of the result of the sizeof operator.
And:
The <sys/types.h> header shall include definitions for at least the
following types:
[...]
size_t
Used for sizes of objects.
ssize_t
Used for a count of bytes or an error indication.
> > It's fixed now in HEAD and 098. A.
>
> you might want to "fix" buffer.h as well then ... i modeled the sha.h patch
> after that file
I've done it in sha.h, md2.h, md4.h, md5.h and ripemd.h.
Kurt
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [email protected]
Automated List Manager [EMAIL PROTECTED]