Update from stable branch.
[openssl.git] / crypto / bio / bss_sock.c
index 472dd75821c5e65d4b3cfd93fe777a489a7d449b..30c3ceab468cf1ca50a9bb65e8f51dbda014d727 100644 (file)
@@ -60,6 +60,9 @@
 #include <errno.h>
 #define USE_SOCKETS
 #include "cryptlib.h"
+
+#ifndef OPENSSL_NO_SOCK
+
 #include <openssl/bio.h>
 
 #ifdef WATT32
@@ -300,3 +303,5 @@ int BIO_sock_non_fatal_error(int err)
                }
        return(0);
        }
+
+#endif  /* #ifndef OPENSSL_NO_SOCK */