summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio/bss_sock.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bio/bss_sock.c')
-rw-r--r--src/lib/libcrypto/bio/bss_sock.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bio/bss_sock.c b/src/lib/libcrypto/bio/bss_sock.c
index 472dd75821..2c1c405ec7 100644
--- a/src/lib/libcrypto/bio/bss_sock.c
+++ b/src/lib/libcrypto/bio/bss_sock.c
@@ -56,6 +56,8 @@
56 * [including the GNU Public Licence.] 56 * [including the GNU Public Licence.]
57 */ 57 */
58 58
59#ifndef OPENSSL_NO_SOCK
60
59#include <stdio.h> 61#include <stdio.h>
60#include <errno.h> 62#include <errno.h>
61#define USE_SOCKETS 63#define USE_SOCKETS
@@ -246,7 +248,7 @@ int BIO_sock_non_fatal_error(int err)
246 { 248 {
247 switch (err) 249 switch (err)
248 { 250 {
249#if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_NETWARE) 251#if defined(OPENSSL_SYS_WINDOWS)
250# if defined(WSAEWOULDBLOCK) 252# if defined(WSAEWOULDBLOCK)
251 case WSAEWOULDBLOCK: 253 case WSAEWOULDBLOCK:
252# endif 254# endif
@@ -277,7 +279,7 @@ int BIO_sock_non_fatal_error(int err)
277#endif 279#endif
278 280
279#ifdef EAGAIN 281#ifdef EAGAIN
280# if EWOULDBLOCK != EAGAIN 282#if EWOULDBLOCK != EAGAIN
281 case EAGAIN: 283 case EAGAIN:
282# endif 284# endif
283#endif 285#endif
@@ -300,3 +302,4 @@ int BIO_sock_non_fatal_error(int err)
300 } 302 }
301 return(0); 303 return(0);
302 } 304 }
305#endif