]> granicus.if.org Git - openssl/commitdiff
Correct support for SunOS 4.1.3_U1.
authorRichard Levitte <levitte@openssl.org>
Wed, 13 Nov 2002 16:11:14 +0000 (16:11 +0000)
committerRichard Levitte <levitte@openssl.org>
Wed, 13 Nov 2002 16:11:14 +0000 (16:11 +0000)
PR: 227

Configure
crypto/ocsp/ocsp_ht.c
crypto/ui/ui_openssl.c
e_os2.h

index 11a3566cf4b009377c88202ee9203e22455a5c57..497fd23f0909f2fa5bf33b429de16016d9e1b5ec 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -206,8 +206,8 @@ my %table=(
 #"linux64-sparcv9","sparc64-linux-gcc:-m64 -mcpu=v9 -DB_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -Wall -DBN_DIV2W::-D_REENTRANT:ULTRASPARC::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR::::asm/md5-sparcv9.o:",
 
 # Sunos configs, assuming sparc for the gcc one.
-##"sunos-cc", "cc:-O4 -DNOPROTO -DNOCONST::(unknown):::DES_UNROLL:::",
-"sunos-gcc","gcc:-O3 -mv8 -Dssize_t=int::(unknown):::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL DES_PTR DES_RISC1:::",
+##"sunos-cc", "cc:-O4 -DNOPROTO -DNOCONST::(unknown):SUNOS::DES_UNROLL:::",
+"sunos-gcc","gcc:-O3 -mv8 -Dssize_t=int::(unknown):SUNOS::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL DES_PTR DES_RISC1:::",
 
 #### IRIX 5.x configs
 # -mips2 flag is added by ./config when appropriate.
index 3194fd90d09252e4226638bc6d2b8fb717ee71e9..357709a843c2b70bf8ed0e48d170f9e84d4bbb6c 100644 (file)
@@ -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
index f967ba75d02f84ca52b0c9c824442c3fd89c6d7a..793846cbc64f4b86a67917574d40b77f0dcd0aa6 100644 (file)
 # 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
diff --git a/e_os2.h b/e_os2.h
index 45551d1eb6c4cc66375190d2c1a9ba1219bbc9cc..3d61afeb5077d1a28d20aeeea97c00dc1f168244 100644 (file)
--- a/e_os2.h
+++ b/e_os2.h
@@ -174,6 +174,9 @@ extern "C" {
 #  define OPENSSL_SYS_MACOSX_RHAPSODY
 #  define OPENSSL_SYS_MACOSX
 # endif
+# ifdef OPENSSL_SYSNAME_SUNOS
+#  define OPENSSL_SYS_SUNOS
+#endif
 # if defined(_CRAY) || defined(OPENSSL_SYSNAME_CRAY)
 #  define OPENSSL_SYS_CRAY
 # endif