Re-enable os-wrappers-test.c on Darwin, fix errors

Signed-off-by: Torrekie Gen <me@torrekie.dev>
This commit is contained in:
Torrekie 2024-04-20 18:28:46 +08:00
parent d0d2a43e33
commit 2376a31c20
4 changed files with 43 additions and 9 deletions

View file

@ -45,6 +45,14 @@
#include "wayland-server-private.h"
#include "wayland-os.h"
#ifdef __APPLE__
/* epoll-shim should provide this by design */
struct itimerspec {
struct timespec it_interval;
struct timespec it_value;
};
#endif
/** \cond INTERNAL */
#define TIMER_REMOVED -2