Call epoll_shim_ppoll() instead of ppoll() on Darwin

This amends ddd348da7e .

Signed-off-by: Liang Qi <cavendish.qi@gmail.com>
This commit is contained in:
Liang Qi 2025-06-17 20:32:39 +02:00
parent f9c13de55d
commit f785060318
3 changed files with 23 additions and 2 deletions

View file

@ -38,7 +38,6 @@
#include <sys/un.h>
#include <ctype.h>
#include <fcntl.h>
#include <poll.h>
#include <pthread.h>
#include "wayland-util.h"
@ -1999,7 +1998,7 @@ wl_display_poll(struct wl_display *display,
timespec_sub_saturate(&result, &deadline, &now);
remaining_timeout = &result;
}
ret = ppoll(pfd, 1, remaining_timeout, NULL);
ret = wl_os_ppoll(pfd, 1, remaining_timeout, NULL);
} while (ret == -1 && errno == EINTR);
return ret;