summaryrefslogtreecommitdiff
path: root/lib/libssl
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2014-05-05 16:16:38 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2014-05-05 16:16:38 +0000
commit165f122e3df41a8cbe01cb88b6c960d783baec26 (patch)
treedb797589e0badf3f0dc67e7643ee8b5e2324b277 /lib/libssl
parenta6690b6a7ec50d94d12d2cc2581b233c0e2a2d10 (diff)
Repair BIO_socket_nbio operation.
ok miod@
Diffstat (limited to 'lib/libssl')
-rw-r--r--lib/libssl/src/crypto/bio/b_sock.c5
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);
}