This patch is against openssl 0.9.7d as I couldn't get a connection to the
rsync server in order to produce it against the CVS :(

With this patch, on recent versions of BeOS and Zeta it now compiles from
the command line (thanks to the job you've done on the codebase).

david


diff -u openssl-0.9.7d/Configure openssl-0.9.7d-beos/Configure
--- openssl-0.9.7d/Configure Fri Mar 12 21:24:44 2004
+++ openssl-0.9.7d-beos/Configure Mon Apr 12 10:55:00 2004
@@ -567,6 +567,7 @@
 ##### Compaq Non-Stop Kernel (Tandem)

"tandem-c89","c89:-Ww -D__TANDEM -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 
-D_TANDEM_SOURCE -DB_ENDIAN::(unknown):::THIRTY_TWO_BIT:::",

+"gcc-BeOS",
"gcc:-O2 -march=pentium -mcpu=pentiumpro -Wall -DNO_SYS_UN_H -DTERMIOS:::BEO
S:-lbind -lsocket:::THIRTY_TWO_BIT::::BN_LLONG::::beos:beos:-fPIC -DPIC:-nos
tart:so:",
 );

 my @WinTargets=qw(VC-NT VC-CE VC-WIN32 VC-WIN16 VC-W31-16 VC-W31-32
VC-MSDOS
diff -u openssl-0.9.7d/config openssl-0.9.7d-beos/config
--- openssl-0.9.7d/config Wed Jan 21 09:58:17 2004
+++ openssl-0.9.7d-beos/config Fri Apr  9 19:18:32 2004
@@ -351,6 +351,8 @@
     NONSTOP_KERNEL*)
        echo "nsr-tandem-nsk"; exit 0;
        ;;
+    *BeOS*)
+       echo "BePC-Be-BeOS"; exit 0;
 esac

 #
@@ -737,6 +739,7 @@
   t3e-cray-unicosmk) OUT="cray-t3e" ;;
   j90-cray-unicos) OUT="cray-j90" ;;
   nsr-tandem-nsk) OUT="tandem-c89" ;;
+  BePC-*-BeOS) OUT="gcc-BeOS" ;;
   *) OUT=`echo $GUESSOS | awk -F- '{print $3}'`;;
 esac

diff -u openssl-0.9.7d/e_os2.h openssl-0.9.7d-beos/e_os2.h
--- openssl-0.9.7d/e_os2.h Fri Nov 15 22:39:43 2002
+++ openssl-0.9.7d-beos/e_os2.h Fri Apr  9 19:53:54 2004
@@ -187,6 +187,9 @@
 # if defined(_AIX) || defined(OPENSSL_SYSNAME_AIX)
 #  define OPENSSL_SYS_AIX
 # endif
+# if defined(__BEOS__) || defined(OPENSSL_SYSNAME_BEOS)
+#  define OPENSSL_SYS_BEOS
+# endif
 #endif

 /* ------------------------------- 
VxWorks --------------------------------- */
diff -u openssl-0.9.7d/crypto/rand/rand_egd.c
openssl-0.9.7d-beos/crypto/rand/rand_egd.c
--- openssl-0.9.7d/crypto/rand/rand_egd.c Sat Dec 27 14:40:37 2003
+++ openssl-0.9.7d-beos/crypto/rand/rand_egd.c Fri Apr  9 19:43:14 2004
@@ -95,7 +95,7 @@
  *   RAND_egd() is a wrapper for RAND_egd_bytes() with numbytes=255.
  */

-#if defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VMS) ||
defined(OPENSSL_SYS_MSDOS) || defined(OPENSSL_SYS_VXWORKS)
+#if defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_VMS) ||
defined(OPENSSL_SYS_MSDOS) || defined(OPENSSL_SYS_VXWORKS) ||
defined(OPENSSL_SYS_BEOS)
 int RAND_query_egd_bytes(const char *path, unsigned char *buf, int bytes)
  {
  return(-1);

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to