From beba7611c4463292f2225c2628a288be0c8cf9ea Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 25 Apr 2025 07:51:53 +0200 Subject: [PATCH] poll builder: add dummy field The microsoft compiler does not like the empty struct, so go add a dummy field instead. Signed-off-by: Gerd Hoffmann Reviewed-by: Paul Yang Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/27494) (cherry picked from commit 04b59c419933adca4cde1d97e2c7522cb21c3468) --- ssl/rio/poll_builder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl/rio/poll_builder.h b/ssl/rio/poll_builder.h index 985e4713b29..0a03f89df74 100644 --- a/ssl/rio/poll_builder.h +++ b/ssl/rio/poll_builder.h @@ -24,7 +24,7 @@ */ typedef struct rio_poll_builder_st { # if RIO_POLL_METHOD == RIO_POLL_METHOD_NONE - /* nothing */; + int unused_dummy; /* make microsoft compiler happy */ # elif RIO_POLL_METHOD == RIO_POLL_METHOD_SELECT fd_set rfd, wfd, efd; int hwm_fd; -- 2.47.2