diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2014-05-05 16:16:38 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2014-05-05 16:16:38 +0000 |
commit | 165f122e3df41a8cbe01cb88b6c960d783baec26 (patch) | |
tree | db797589e0badf3f0dc67e7643ee8b5e2324b277 /lib/libssl | |
parent | a6690b6a7ec50d94d12d2cc2581b233c0e2a2d10 (diff) |
Repair BIO_socket_nbio operation.
ok miod@
Diffstat (limited to 'lib/libssl')
-rw-r--r-- | lib/libssl/src/crypto/bio/b_sock.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 <sys/ioctl.h> + #include <stdio.h> #include <stdlib.h> #include <unistd.h> @@ -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); } |