On Wed, 22 Apr 2009, Brad House wrote:

> I've attached a trivial patch to correct the build of OpenSSL
> on SCO OpenServer 5.  SCO 5 doesn't define socklen_t, this
> patch works around that.

-------
diff -ruN openssl-1.0.0-beta2.orig/crypto/bio/b_sock.c 
openssl-1.0.0-beta2/crypto/bio/b_sock.c
--- openssl-1.0.0-beta2.orig/crypto/bio/b_sock.c        2009-04-03 
12:44:40.000000000 -0400
+++ openssl-1.0.0-beta2/crypto/bio/b_sock.c     2009-04-22 14:58:05.000000000 
-0400
@@ -808,7 +808,7 @@
        if (addr == NULL) goto end;
 
 #ifdef EAI_FAMILY
-# if defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_BEOS_BONE) || 
defined(OPENSSL_SYS_MSDOS)
+# if defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_BEOS_BONE) || 
defined(OPENSSL_SYS_MSDOS) || defined(_SCO_ELF)
 #  define SOCKLEN_T size_t
 # elif !defined(SOCKLEN_T)
 #  define SOCKLEN_T socklen_t
-------

Two problems with that patch.
1) _SCO_ELF is defined in gcc but not the native cc.
2) SOCKLEN_T should be int on OpenServer 5.

You can run "./config -DSOCKLEN_T=int" to get the desired result.


-- 
Tim Rice                                Multitalents    (707) 887-1469
[email protected]


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

Reply via email to