diff options
author | Matt Caswell <matt@openssl.org> | 2016-04-20 12:56:54 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-04-20 14:52:46 +0100 |
commit | d6e03b707796747442be86c56e88c653f91ac9ed (patch) | |
tree | 1e2b34e49a2f142f8b1e03bace9d3c7bc1e82967 /apps/apps.c | |
parent | 505f74ca34ea59f18ec980d1fd9150d8e348d1e3 (diff) | |
download | openssl-d6e03b707796747442be86c56e88c653f91ac9ed.tar.gz |
Don't use select on Windows
Windows "select" only works for sockets so don't use it to wait for async.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'apps/apps.c')
-rw-r--r-- | apps/apps.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/apps.c b/apps/apps.c index 6d8c4897d0..8cf3b59ee8 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -2621,6 +2621,8 @@ BIO *bio_open_default_quiet(const char *filename, char mode, int format) void wait_for_async(SSL *s) { + /* On Windows select only works for sockets, so we simply don't wait */ +#ifndef OPENSSL_SYS_WINDOWS int width = 0; fd_set asyncfds; OSSL_ASYNC_FD *fds; @@ -2644,4 +2646,5 @@ void wait_for_async(SSL *s) fds++; } select(width, (void *)&asyncfds, NULL, NULL, NULL); +#endif } |