Add a configuration for Sony News 4.
authorRichard Levitte <levitte@openssl.org>
Thu, 14 Sep 2000 12:48:48 +0000 (12:48 +0000)
committerRichard Levitte <levitte@openssl.org>
Thu, 14 Sep 2000 12:48:48 +0000 (12:48 +0000)
Submitted by NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp>

CHANGES
Configure
config
e_os.h

diff --git a/CHANGES b/CHANGES
index 1eca683808d90d70f5f656b94df6d30883629276..c0bb751578b27c21199ea3a562831508cdfa3193 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -4,6 +4,9 @@
 
  Changes between 0.9.5a and 0.9.6  [xx XXX 2000]
 
+  *) Add a configuration entry for Sony News 4.
+     [NAKAJI Hiroyuki <nakaji@tutrp.tut.ac.jp>]
+
   *) Don't set the two most significant bits to one when generating a
      random number < q in the DSA library.
      [Ulf Möller]
index 93df8dc8da86766612e0832af93f7bbf36bf0003..6195c41b8bef0ffeeca893eb09aefdee4e8addce 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -393,6 +393,9 @@ my %table=(
 ##### MacOS X (a.k.a. Rhapsody) setup
 "rhapsody-ppc-cc","cc:-O3 -DB_ENDIAN::(unknown)::BN_LLONG RC4_CHAR RC4_CHUNK DES_UNROLL BF_PTR:::",
 
+##### Sony NEWS-OS 4.x
+"newsos4-gcc","gcc:-O -DB_ENDIAN -DNEWS4::(unknown):-lmld -liberty:BN_LLONG RC4_CHAR RC4_CHUNK DES_PTR DES_RISC1 DES_UNROLL BF_PTR::::",
+
 );
 
 my @WinTargets=qw(VC-NT VC-WIN32 VC-WIN16 VC-W31-16 VC-W31-32 VC-MSDOS BC-32
diff --git a/config b/config
index 3c779c5b3944de6dbdfeca8371abd8010c257a63..910c97facebca771ba22ff0915c7beb3dab9e5ab 100755 (executable)
--- a/config
+++ b/config
@@ -247,6 +247,10 @@ case "${SYSTEM}:${RELEASE}:${VERSION}:${MACHINE}" in
        echo "${MACHINE}-v11-${SYSTEM}"; exit 0;
        ;;
 
+    NEWS-OS:4.*)
+       echo "mips-sony-newsos4"; exit 0;
+       ;;
+
 esac
 
 #
@@ -470,6 +474,7 @@ case "$GUESSOS" in
   # these are all covered by the catchall below
   # *-aix) OUT="aix-$CC" ;;
   # *-dgux) OUT="dgux" ;;
+  mips-sony-newsos4) OUT="newsos4-gcc" ;;
   *) OUT=`echo $GUESSOS | awk -F- '{print $3}'`;;
 esac
 
diff --git a/e_os.h b/e_os.h
index 3af6efb0e02eabbf7911808a3353948996aa97aa..77efc6e35b2bc88086bb5c6f8dbec6eb880e96de 100644 (file)
--- a/e_os.h
+++ b/e_os.h
@@ -283,12 +283,16 @@ extern "C" {
 #    ifndef NO_SYS_TYPES_H
 #      include <sys/types.h>
 #    endif
-#    ifdef NeXT
+#    if defined(NeXT) || defined(NEWS4)
 #      define pid_t int /* pid_t is missing on NEXTSTEP/OPENSTEP
                          * (unless when compiling with -D_POSIX_SOURCE,
                          * which doesn't work for us) */
 #      define ssize_t int /* ditto */
 #    endif
+#    ifdef NEWS4 /* setvbuf is missing on mips-sony-bsd */
+#      define setvbuf(a, b, c, d) setbuffer((a), (b), (d))
+       typedef unsigned long clock_t;
+#    endif
 
 #    define OPENSSL_CONF       "openssl.cnf"
 #    define SSLEAY_CONF                OPENSSL_CONF