summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-11-13 16:11:14 +0000
committerRichard Levitte <levitte@openssl.org>2002-11-13 16:11:14 +0000
commit0709385d3caf380d8506a16cc27573e7d2cf52b5 (patch)
tree1abc5a00ad294160103daa4ee4b7e534742f9ebc /crypto
parent54a656ef081f72a740c550ebd8099b40b8b5cde0 (diff)
Correct support for SunOS 4.1.3_U1.
PR: 227
Diffstat (limited to 'crypto')
-rw-r--r--crypto/ocsp/ocsp_ht.c3
-rw-r--r--crypto/ui/ui_openssl.c6
2 files changed, 8 insertions, 1 deletions
diff --git a/crypto/ocsp/ocsp_ht.c b/crypto/ocsp/ocsp_ht.c
index 3194fd90d0..357709a843 100644
--- a/crypto/ocsp/ocsp_ht.c
+++ b/crypto/ocsp/ocsp_ht.c
@@ -64,6 +64,9 @@
#include <openssl/ocsp.h>
#include <openssl/err.h>
#include <openssl/buffer.h>
+#ifdef OPENSSL_SYS_SUNOS
+#define strtoul (unsigned long)strtol
+#endif /* OPENSSL_SYS_SUNOS */
/* Quick and dirty HTTP OCSP request handler.
* Could make this a bit cleverer by adding
diff --git a/crypto/ui/ui_openssl.c b/crypto/ui/ui_openssl.c
index f967ba75d0..793846cbc6 100644
--- a/crypto/ui/ui_openssl.c
+++ b/crypto/ui/ui_openssl.c
@@ -221,7 +221,7 @@
# define TTY_set(tty,data) ioctl(tty,TIOCSETP,data)
#endif
-#if !defined(_LIBC) && !defined(OPENSSL_SYS_MSDOS) && !defined(OPENSSL_SYS_VMS) && !defined(OPENSSL_SYS_MACINTOSH_CLASSIC)
+#if !defined(_LIBC) && !defined(OPENSSL_SYS_MSDOS) && !defined(OPENSSL_SYS_VMS) && !defined(OPENSSL_SYS_MACINTOSH_CLASSIC) && !defined(OPENSSL_SYS_SUNOS)
# include <sys/ioctl.h>
#endif
@@ -241,6 +241,10 @@ struct IOSB {
};
#endif
+#ifdef OPENSSL_SYS_SUNOS
+ typedef int sig_atomic_t;
+#endif
+
#if defined(OPENSSL_SYS_MACINTOSH_CLASSIC) || defined(MAC_OS_GUSI_SOURCE)
/*
* This one needs work. As a matter of fact the code is unoperational