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

@ -28,6 +28,7 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <poll.h>
int
wl_os_socket_cloexec(int domain, int type, int protocol);
@ -51,6 +52,9 @@ void *
wl_os_mremap_maymove(int fd, void *old_data, ssize_t *old_size,
ssize_t new_size, int prot, int flags);
int
wl_os_ppoll(struct pollfd *fds, nfds_t nfds,
const struct timespec *timeout_ts, const sigset_t *sigmask);
/*
* The following are for wayland-os.c and the unit tests.