[PATCH] VxWorks PowerPC 860 and no-md2

2003-09-27 Thread Bob Bradley
The attached patch adds Configure script support for VxWorks for PowerPC
860, fixes a compile problem with VxWorks builds, and fixes build problems
with no-md2.

diff -ur openssl-orig/Configure openssl-work/Configure
--- openssl-orig/Configure	2003-04-09 22:46:55.0 -0700
+++ openssl-work/Configure	2003-09-26 23:11:36.0 -0700
@@ -560,6 +560,7 @@
 "vxworks-ppc405","ccppc:-g -msoft-float -mlongcall -DCPU=PPC405 -I\$(WIND_BASE)/target/h:::VXWORKS:-r:",
 "vxworks-ppc750","ccppc:-ansi -nostdinc -DPPC750 -D_REENTRANT -fvolatile -fno-builtin -fno-for-scope -fsigned-char -Wall -msoft-float -mlongcall -DCPU=PPC604 -I\$(WIND_BASE)/target/h \$(DEBUG_FLAG):::VXWORKS:-r:",
 "vxworks-ppc750-debug","ccppc:-ansi -nostdinc -DPPC750 -D_REENTRANT -fvolatile -fno-builtin -fno-for-scope -fsigned-char -Wall -msoft-float -mlongcall -DCPU=PPC604 -I\$(WIND_BASE)/target/h -DBN_DEBUG -DREF_CHECK -DCONF_DEBUG -DBN_CTX_DEBUG -DCRYPTO_MDEBUG -DPEDANTIC -DDEBUG_SAFESTACK -DDEBUG -g:::VXWORKS:-r:",
+"vxworks-ppc860","ccppc:-g -msoft-float -DCPU=PPC860 -DNO_STRINGS_H -I\$(WIND_BASE)/target/h:::VXWORKS:-r:",
 
 # 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:::",
diff -ur openssl-orig/crypto/md2/md2test.c openssl-work/crypto/md2/md2test.c
--- openssl-orig/crypto/md2/md2test.c	2003-02-19 03:22:18.0 -0800
+++ openssl-work/crypto/md2/md2test.c	2003-09-26 23:12:02.0 -0700
@@ -59,7 +59,9 @@
 #include 
 #include 
 #include 
+#ifndef OPENSSL_NO_MD2
 #include 
+#endif
 
 #include "../e_os.h"
 
diff -ur openssl-orig/e_os.h openssl-work/e_os.h
--- openssl-orig/e_os.h	2002-12-04 01:54:22.0 -0800
+++ openssl-work/e_os.h	2003-09-26 23:12:14.0 -0700
@@ -520,7 +520,7 @@
 #if defined(ioctlsocket)
 #undef ioctlsocket
 #endif
-#define ioctlsocket(a,b,c) ioctl((a),(b),*(c))
+#define ioctlsocket(a,b,c)  ioctl((a),(b),*(int*)(c))
 
 #include 
 #include 
diff -ur openssl-orig/test/md2test.c openssl-work/test/md2test.c
--- openssl-orig/test/md2test.c	2003-02-19 03:22:18.0 -0800
+++ openssl-work/test/md2test.c	2003-09-26 23:12:20.0 -0700
@@ -59,7 +59,9 @@
 #include 
 #include 
 #include 
+#ifndef OPENSSL_NO_MD2
 #include 
+#endif
 
 #include "../e_os.h"
 


Re: [PATCH] VxWorks PowerPC 860 and no-md2

2003-09-27 Thread Richard Levitte - VMS Whacker
In message [EMAIL PROTECTED] on Fri, 26 Sep 2003 23:16:39 -0700, Bob Bradley [EMAIL 
PROTECTED] said:

bob The attached patch adds Configure script support for VxWorks for PowerPC
bob 860, fixes a compile problem with VxWorks builds, and fixes build problems
bob with no-md2.

I've applied your Configure and e_os.h changes on the 0.9.7 branch as
well as in the 0.9.8-dev line.

The no-md2 change were already present in those branches, in a
slightly different form.

Thanks for your contribution.

-- 
Richard Levitte   \ Tunnlandsvägen 3  \ [EMAIL PROTECTED]
[EMAIL PROTECTED]  \ S-168 36  BROMMA  \ T: +46-8-26 52 47
\  SWEDEN   \ or +46-708-26 53 44
Procurator Odiosus Ex Infernis-- [EMAIL PROTECTED]
Member of the OpenSSL development team: http://www.openssl.org/

Unsolicited commercial email is subject to an archival fee of $400.
See http://www.stacken.kth.se/~levitte/mail/ for more info.
__
OpenSSL Project http://www.openssl.org
Development Mailing List   [EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]