diff options
author | Andy Polyakov <appro@openssl.org> | 1999-09-11 17:54:18 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 1999-09-11 17:54:18 +0000 |
commit | 17f389bbbfccf057a8bc04084ed068c4b368e751 (patch) | |
tree | 7daa85ce7f0f44aff61853dc10c5915d465ba43c /crypto/x509/by_dir.c | |
parent | 5bdae1675c8b450bed091b9605ae9d10d61adfc7 (diff) | |
download | openssl-17f389bbbfccf057a8bc04084ed068c4b368e751.tar.gz |
Initial support for MacOS.
This will soon be complemented with MacOS specific source code files and
INSTALL.MacOS.
I (Andy) have decided to get rid of a number of #include <sys/types.h>.
I've verified it's ok (both by examining /usr/include/*.h and compiling)
on a number of Unix platforms. Unfortunately I don't have Windows box
to verify this on. I really appreciate if somebody could try to compile
it and contact me a.s.a.p. in case a problem occurs.
Submitted by: Roy Wood <roy@centricsystems.ca>
Reviewed by: Andy Polyakov <appro@fy.chalmers.se>
Diffstat (limited to 'crypto/x509/by_dir.c')
-rw-r--r-- | crypto/x509/by_dir.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/crypto/x509/by_dir.c b/crypto/x509/by_dir.c index 734e39ac77..3e1565ea5b 100644 --- a/crypto/x509/by_dir.c +++ b/crypto/x509/by_dir.c @@ -59,10 +59,18 @@ #include <stdio.h> #include <time.h> #include <errno.h> -#include <sys/types.h> -#include <sys/stat.h> #include "cryptlib.h" + +#ifndef NO_SYS_TYPES_H +# include <sys/types.h> +#endif +#ifdef MAC_OS_pre_X +# include <stat.h> +#else +# include <sys/stat.h> +#endif + #include <openssl/lhash.h> #include <openssl/x509.h> |