Skip to content

Commit

Permalink
use TIMEVAL typedef with select()
Browse files Browse the repository at this point in the history
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
  • Loading branch information
busterb committed Oct 6, 2024
1 parent 0eceb61 commit 64f15ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/openssl/compat/poll_win.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 64f15ec

Please sign in to comment.