From 4700aea951dcba9b1e3b724bf4d8f0c712578892 Mon Sep 17 00:00:00 2001 From: Ulf Möller Date: Tue, 11 Apr 2006 21:34:21 +0000 Subject: Add BeOS support. PR: 1312 Submitted by: Oliver Tappe Reviewed by: Ulf Moeller --- crypto/bio/b_sock.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'crypto/bio/b_sock.c') diff --git a/crypto/bio/b_sock.c b/crypto/bio/b_sock.c index 710a8d6d96..c8ca5923c1 100644 --- a/crypto/bio/b_sock.c +++ b/crypto/bio/b_sock.c @@ -84,6 +84,11 @@ static int wsa_init_done=0; #endif +#if defined(OPENSSL_SYS_BEOS_BONE) +/* BONE's IP6 support is incomplete */ +#undef AF_INET6 +#endif + #if 0 static unsigned long BIO_ghbn_hits=0L; static unsigned long BIO_ghbn_miss=0L; @@ -220,6 +225,10 @@ int BIO_sock_error(int sock) int j,i; int size; +#if defined(OPENSSL_SYS_BEOS_R5) + return 0; +#endif + size=sizeof(int); /* Note: under Windows the third parameter is of type (char *) * whereas under other systems it is (void *) if you don't have @@ -799,7 +808,7 @@ int BIO_accept(int sock, char **addr) if (addr == NULL) goto end; #ifdef EAI_FAMILY -# ifdef OPENSSL_SYS_VMS +# if defined(OPENSSL_SYS_VMS) || defined(OPENSSL_SYS_BEOS_BONE) # define SOCKLEN_T size_t # else # define SOCKLEN_T socklen_t -- cgit v1.2.3