diff options
author | Richard Levitte <levitte@openssl.org> | 2021-05-17 20:20:35 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2021-05-19 12:41:34 +0200 |
commit | 857cbe176f28e3f178e492159fa9f2f203e845cd (patch) | |
tree | 644a9d07ea95e5152dfbceea4b62d15d05e2b1c7 /crypto/bio/b_sock.c | |
parent | fea559085bbe873f0f81751653cf673a7b00a95c (diff) |
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)
Diffstat (limited to 'crypto/bio/b_sock.c')
-rw-r--r-- | crypto/bio/b_sock.c | 12 |
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 |