patch 9.1.1595: Wayland: non-portable use of select()

Problem:  Wayland: non-portable use of select()
Solution: Correctly set the timeval struct
          (Foxe Chen)

closes: #17886

Signed-off-by: Foxe Chen <chen.foxe@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Foxe Chen
2025-08-06 20:38:33 +02:00
committed by Christian Brabandt
parent 66467cf5d8
commit bb99474ceb
2 changed files with 6 additions and 4 deletions

View File

@ -719,6 +719,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1595,
/**/
1594,
/**/

View File

@ -403,8 +403,8 @@ vwl_display_flush(vwl_display_T *display)
FD_ZERO(&wfds);
FD_SET(display->fd, &wfds);
tv.tv_sec = 0;
tv.tv_usec = p_wtm * 1000;
tv.tv_sec = p_wtm / 1000;
tv.tv_usec = (p_wtm % 1000) * 1000;
#endif
if (display->proxy == NULL)
@ -518,8 +518,8 @@ vwl_display_dispatch(vwl_display_T *display)
FD_ZERO(&rfds);
FD_SET(display->fd, &rfds);
tv.tv_sec = 0;
tv.tv_usec = p_wtm * 1000;
tv.tv_sec = p_wtm / 1000;
tv.tv_usec = (p_wtm % 1000) * 1000;
#endif
if (display->proxy == NULL)