From: Richard Levitte Date: Thu, 14 Sep 2000 12:48:48 +0000 (+0000) Subject: Add a configuration for Sony News 4. X-Git-Tag: OpenSSL-engine-0_9_6-beta2~9^2~21 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=72660f5f15fcd71215193f993dd95da0d130168a;ds=sidebyside Add a configuration for Sony News 4. Submitted by NAKAJI Hiroyuki --- diff --git a/CHANGES b/CHANGES index 1eca683808..c0bb751578 100644 --- 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 ] + *) Don't set the two most significant bits to one when generating a random number < q in the DSA library. [Ulf Möller] diff --git a/Configure b/Configure index 93df8dc8da..6195c41b8b 100755 --- 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 3c779c5b39..910c97face 100755 --- 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 3af6efb0e0..77efc6e35b 100644 --- a/e_os.h +++ b/e_os.h @@ -283,12 +283,16 @@ extern "C" { # ifndef NO_SYS_TYPES_H # include # 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