summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2021-05-17 20:20:35 +0200
committerRichard Levitte <levitte@openssl.org>2021-05-19 12:41:34 +0200
commit857cbe176f28e3f178e492159fa9f2f203e845cd (patch)
tree644a9d07ea95e5152dfbceea4b62d15d05e2b1c7
parentFix include/internal/sockets.h for VMS (diff)
downloadopenssl-857cbe176f28e3f178e492159fa9f2f203e845cd.tar.xz
openssl-857cbe176f28e3f178e492159fa9f2f203e845cd.zip
Fix crypto/bio/b_sock.c for VMS
Current VMS C-RTL does not have <sys/select.h>. <sys/socket.h> is a good enough replacement to get fd_set. Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15319)
-rw-r--r--crypto/bio/b_sock.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/crypto/bio/b_sock.c b/crypto/bio/b_sock.c
index d0cdae7b3d..ca45886739 100644
--- a/crypto/bio/b_sock.c
+++ b/crypto/bio/b_sock.c
@@ -29,11 +29,15 @@ static int wsa_init_done = 0;
# if defined(OPENSSL_TANDEM_FLOSS)
# include <floss.h(floss_select)>
# endif
-# elif !defined _WIN32
-# include <unistd.h>
-# include <sys/select.h>
-# else
+# elif defined _WIN32
# include <winsock.h> /* for type fd_set */
+# else
+# include <unistd.h>
+# if defined __VMS
+# include <sys/socket.h>
+# else
+# include <sys/select.h>
+# endif
# endif
# ifndef OPENSSL_NO_DEPRECATED_1_1_0