aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2024-10-06 18:52:46 -0500
committerBrent Cook <busterb@gmail.com>2024-10-06 18:56:01 -0500
commit64f15ec5893c518af2435798297ec4b8c1709afb (patch)
treeae963187f22c3fd9ee708c31cbe45572467d305c /apps
parent0eceb61cc0a86238a2cc74b172ea790156153cf3 (diff)
downloadportable-64f15ec5893c518af2435798297ec4b8c1709afb.tar.gz
portable-64f15ec5893c518af2435798297ec4b8c1709afb.tar.bz2
portable-64f15ec5893c518af2435798297ec4b8c1709afb.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/openssl/compat/poll_win.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/openssl/compat/poll_win.c b/apps/openssl/compat/poll_win.c
index 83191e5..30f6b60 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)
253 timeout_ms = INFINITE; 253 timeout_ms = INFINITE;
254 254
255 do { 255 do {
256 struct timeval tv; 256 TIMEVAL tv;
257 tv.tv_sec = 0; 257 tv.tv_sec = 0;
258 tv.tv_usec = looptime_ms * 1000; 258 tv.tv_usec = looptime_ms * 1000;
259 int handle_signaled = 0; 259 int handle_signaled = 0;