summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/bio/b_sock.c5
-rw-r--r--src/lib/libssl/src/crypto/bio/b_sock.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/libcrypto/bio/b_sock.c b/src/lib/libcrypto/bio/b_sock.c
index ecfaf93b99..7da33d36b2 100644
--- a/src/lib/libcrypto/bio/b_sock.c
+++ b/src/lib/libcrypto/bio/b_sock.c
@@ -56,6 +56,8 @@
56 * [including the GNU Public Licence.] 56 * [including the GNU Public Licence.]
57 */ 57 */
58 58
59#include <sys/ioctl.h>
60
59#include <stdio.h> 61#include <stdio.h>
60#include <stdlib.h> 62#include <stdlib.h>
61#include <unistd.h> 63#include <unistd.h>
@@ -575,8 +577,7 @@ BIO_socket_nbio(int s, int mode)
575 int l; 577 int l;
576 578
577 l = mode; 579 l = mode;
578#ifdef FIONBIO
579 ret = BIO_socket_ioctl(s, FIONBIO, &l); 580 ret = BIO_socket_ioctl(s, FIONBIO, &l);
580#endif 581
581 return (ret == 0); 582 return (ret == 0);
582} 583}
diff --git a/src/lib/libssl/src/crypto/bio/b_sock.c b/src/lib/libssl/src/crypto/bio/b_sock.c
index ecfaf93b99..7da33d36b2 100644
--- a/src/lib/libssl/src/crypto/bio/b_sock.c
+++ b/src/lib/libssl/src/crypto/bio/b_sock.c
@@ -56,6 +56,8 @@
56 * [including the GNU Public Licence.] 56 * [including the GNU Public Licence.]
57 */ 57 */
58 58
59#include <sys/ioctl.h>
60
59#include <stdio.h> 61#include <stdio.h>
60#include <stdlib.h> 62#include <stdlib.h>
61#include <unistd.h> 63#include <unistd.h>
@@ -575,8 +577,7 @@ BIO_socket_nbio(int s, int mode)
575 int l; 577 int l;
576 578
577 l = mode; 579 l = mode;
578#ifdef FIONBIO
579 ret = BIO_socket_ioctl(s, FIONBIO, &l); 580 ret = BIO_socket_ioctl(s, FIONBIO, &l);
580#endif 581
581 return (ret == 0); 582 return (ret == 0);
582} 583}