PROBLEM: doesn't build on pre-POSIX systems
DIAGNOSIS: direct include of unistd.h instead of use of OPENSSL_UNISTD macro
SOLUTION: following patch to openssl-0.9.6a/crypto/uid.c
*** uid.c.old Thu Apr 26 00:56:14 2001
--- uid.c Thu Apr 26 00:48:35 2001
***************
*** 54,63 ****
*/
#include <openssl/crypto.h>
#if defined(__OpenBSD__) || (defined(__FreeBSD__) && __FreeBSD__ > 2)
! #include <unistd.h>
int OPENSSL_issetugid(void)
{
--- 54,64 ----
*/
#include <openssl/crypto.h>
+ #include "cryptlib.h"
#if defined(__OpenBSD__) || (defined(__FreeBSD__) && __FreeBSD__ > 2)
! #include OPENSSL_UNISTD
int OPENSSL_issetugid(void)
{
***************
*** 73,79 ****
#else
! #include <unistd.h>
#include <sys/types.h>
int OPENSSL_issetugid(void)
--- 74,80 ----
#else
! #include OPENSSL_UNISTD
#include <sys/types.h>
int OPENSSL_issetugid(void)
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]