aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/bio/b_sock2.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/bio/b_sock2.c')
-rw-r--r--crypto/bio/b_sock2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/bio/b_sock2.c b/crypto/bio/b_sock2.c
index 823732d64e1a..5d82ab22dc30 100644
--- a/crypto/bio/b_sock2.c
+++ b/crypto/bio/b_sock2.c
@@ -133,7 +133,9 @@ int BIO_connect(int sock, const BIO_ADDR *addr, int options)
*/
int BIO_bind(int sock, const BIO_ADDR *addr, int options)
{
+# ifndef OPENSSL_SYS_WINDOWS
int on = 1;
+# endif
if (sock == -1) {
BIOerr(BIO_F_BIO_BIND, BIO_R_INVALID_SOCKET);