> Okay, as a first step toward getting my Mac changes into OpenSSL,
Hurray!
> openssl-0.9.4.Macintosh/crypto/asn1/a_digest.c
> --- openssl-0.9.4/crypto/asn1/a_digest.c Sun Aug 8 07:25:31 1999
> +++ openssl-0.9.4.Macintosh/crypto/asn1/a_digest.c Mon Aug 23 06:24:05
> 1999
> @@ -58,8 +58,11 @@
>
> #include <stdio.h>
> #include <time.h>
> -#include <sys/types.h>
> -#include <sys/stat.h>
> +
> +#ifndef macintosh
> +# include <sys/types.h>
> +# include <sys/stat.h>
> +#endif
>
I don't find '#ifndef macintosh' 100% appropriate. Trouble is that
according to manual it's *always* defined by Metrowerks. On Mac it's
defined as 1, 0 - otherwise. It might not make hell of a difference now,
but could cause headache to another developer attempting to port OpenSSL
to Metrowerks for embedded MIPS or whatever. I'd suggest to replace
#ifdef macintosh with #ifdef MAC_OS and put something like following
into e_os.h:
#if defined(__MWERKS__) && defined(macintosh)
# if macintosh==1
# define MAC_OS
# endif
#endif
I'll do it, don't worry:-)
Andy.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]