Project

General

Profile

Bug #158

OpenSSL missing types.h include.

Added by dragonfly over 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%


Description

The openssl headers make use of "size_t" but <sys/types.h> is not
included. I'm not sure where the correct place to add the header is but
e_os2.h seems ok.

The following code does not compile on DragonFly.

#include <openssl/sha.h>

int main()
{
return 0;
}

Regards

Gary

openssl.diff View (215 Bytes) dragonfly, 04/28/2006 10:33 AM

History

#1 Updated by joerg almost 11 years ago

On Fri, Apr 28, 2006 at 11:22:43AM +0100, Gary Allan wrote:
>
> The openssl headers make use of "size_t" but <sys/types.h> is not
> included. I'm not sure where the correct place to add the header is but
> e_os2.h seems ok.

Include them in the program first? This is an example of the typical
"let the programmer include what is needed first" philosophy.
I don't really like to hack OpenSSL for this.

Joerg

#2 Updated by dragonfly almost 11 years ago

wrote:
> On Fri, Apr 28, 2006 at 11:22:43AM +0100, Gary Allan wrote:
>
>>The openssl headers make use of "size_t" but <sys/types.h> is not
>>included. I'm not sure where the correct place to add the header is but
>>e_os2.h seems ok.
>
>
> Include them in the program first? This is an example of the typical
> "let the programmer include what is needed first" philosophy.
> I don't really like to hack OpenSSL for this.
>
> Joerg

Ok. I'll modify the program.

Thanks

Gary

Also available in: Atom PDF