Add necessary changes to be able to build on VxWorks for PPC860.
authorRichard Levitte <levitte@openssl.org>
Sat, 27 Sep 2003 07:24:47 +0000 (07:24 +0000)
committerRichard Levitte <levitte@openssl.org>
Sat, 27 Sep 2003 07:24:47 +0000 (07:24 +0000)
Contributed by Bob Bradley <bob@chaoticsoftware.com>

Configure
e_os.h

index 7763dc413821ef91c64c60695fa1eee06d707644..8f69eba9c7d9f540c46f476205b7783c789423bf 100755 (executable)
--- a/Configure
+++ b/Configure
@@ -560,6 +560,7 @@ my %table=(
 "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 --git a/e_os.h b/e_os.h
index 4c6e70dffacc407c51655aea8b1527ea78526bf1..420479edc829512405bc7a16f5a3150f91db62b1 100644 (file)
--- a/e_os.h
+++ b/e_os.h
@@ -522,7 +522,7 @@ extern char *sys_errlist[]; extern int sys_nerr;
 #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 <vxWorks.h>
 #include <sockLib.h>