summaryrefslogtreecommitdiff
path: root/ssl
diff options
context:
space:
mode:
authorappro <appro>1999-09-11 17:53:56 +0000
committerappro <appro>1999-09-11 17:53:56 +0000
commitead693644eba268169a24f3144a08edc17bd24a0 (patch)
tree92479466da32b00be75b7259bf6a8ce844271bf6 /ssl
parent2bd52705882a671aa06fb657611422d267c89375 (diff)
downloadopenssl-ead693644eba268169a24f3144a08edc17bd24a0.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 'ssl')
-rw-r--r--ssl/ssl_cert.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c
index 6d2511f76..a695d042c 100644
--- a/ssl/ssl_cert.c
+++ b/ssl/ssl_cert.c
@@ -105,14 +105,22 @@
*/
#include <stdio.h>
-#include <sys/types.h>
-#if !defined(WIN32) && !defined(VSM) && !defined(NeXT)
+
+#include "openssl/e_os.h"
+
+#ifndef NO_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+
+#if !defined(WIN32) && !defined(VSM) && !defined(NeXT) && !defined(MAC_OS_pre_X)
#include <dirent.h>
#endif
+
#ifdef NeXT
#include <sys/dir.h>
#define dirent direct
#endif
+
#include <openssl/objects.h>
#include <openssl/bio.h>
#include <openssl/pem.h>
@@ -671,6 +679,7 @@ err:
#ifndef WIN32
#ifndef VMS /* XXXX This may be fixed in the future */
+#ifndef MAC_OS_pre_X
int SSL_add_dir_cert_subjects_to_stack(STACK_OF(X509_NAME) *stack,
const char *dir)
@@ -714,3 +723,4 @@ err:
#endif
#endif
+#endif