From 64f15ec5893c518af2435798297ec4b8c1709afb Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Sun, 6 Oct 2024 18:52:46 -0500 Subject: [PATCH] use TIMEVAL typedef with select() This prevents the compatibility struct timeval definition in sys/time.h from potentially getting used with select() here. https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-select --- apps/openssl/compat/poll_win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openssl/compat/poll_win.c b/apps/openssl/compat/poll_win.c index 83191e57ad..30f6b6071a 100644 --- a/apps/openssl/compat/poll_win.c +++ b/apps/openssl/compat/poll_win.c @@ -253,7 +253,7 @@ poll(struct pollfd *pfds, nfds_t nfds, int timeout_ms) timeout_ms = INFINITE; do { - struct timeval tv; + TIMEVAL tv; tv.tv_sec = 0; tv.tv_usec = looptime_ms * 1000; int handle_signaled = 0;