From: Foxe Chen Date: Wed, 6 Aug 2025 18:38:33 +0000 (+0200) Subject: patch 9.1.1595: Wayland: non-portable use of select() X-Git-Tag: v9.1.1595^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb99474ceb63edf49d0bbf860d0f3d8a2cd15820;p=thirdparty%2Fvim.git 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 Signed-off-by: Christian Brabandt --- diff --git a/src/version.c b/src/version.c index 307b358416..275d28ce42 100644 --- a/src/version.c +++ b/src/version.c @@ -719,6 +719,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1595, /**/ 1594, /**/ diff --git a/src/wayland.c b/src/wayland.c index b09ec5f6b9..e1eee19940 100644 --- a/src/wayland.c +++ b/src/wayland.c @@ -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)