PR: 1888
authorDr. Stephen Henson <steve@openssl.org>
Fri, 3 Apr 2009 16:44:40 +0000 (16:44 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Fri, 3 Apr 2009 16:44:40 +0000 (16:44 +0000)
Submitted by: Tim Rice <tim@multitalents.net>
Approved by: steve@openssl.org

Allow SOCKLEN_T type to be overridden at config time e.g.
./config -DSOCKLEN_T=int

crypto/bio/b_sock.c

index 0eee25a0bc9b44742ff1fb12ccaf8879ab47065f..da0f126f12e5c2d1194ab12140560d83fad00f18 100644 (file)
@@ -810,7 +810,7 @@ int BIO_accept(int sock, char **addr)
 #ifdef EAI_FAMILY
 # if defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_BEOS_BONE) || defined(OPENSSL_SYS_MSDOS)
 #  define SOCKLEN_T size_t
-# else
+# elif !defined(SOCKLEN_T)
 #  define SOCKLEN_T socklen_t
 #endif
        do {