From d6e03b707796747442be86c56e88c653f91ac9ed Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Wed, 20 Apr 2016 12:56:54 +0100 Subject: [PATCH] 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 --- apps/apps.c | 3 +++ 1 file changed, 3 insertions(+) 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 } -- 2.25.1