From 165f122e3df41a8cbe01cb88b6c960d783baec26 Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Mon, 5 May 2014 16:16:38 +0000 Subject: Repair BIO_socket_nbio operation. ok miod@ --- lib/libssl/src/crypto/bio/b_sock.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/libssl') diff --git a/lib/libssl/src/crypto/bio/b_sock.c b/lib/libssl/src/crypto/bio/b_sock.c index ecfaf93b99d..7da33d36b27 100644 --- a/lib/libssl/src/crypto/bio/b_sock.c +++ b/lib/libssl/src/crypto/bio/b_sock.c @@ -56,6 +56,8 @@ * [including the GNU Public Licence.] */ +#include + #include #include #include @@ -575,8 +577,7 @@ BIO_socket_nbio(int s, int mode) int l; l = mode; -#ifdef FIONBIO ret = BIO_socket_ioctl(s, FIONBIO, &l); -#endif + return (ret == 0); } -- cgit v1.2.3