#include "aio_time.h"
#include "aio_ring.h"
+/*
+ * FIXME: On 64-bit kernels running 32-bit userland, this syscall misbehaves
+ * when passing a sigmask by always returning -EINVAL. This works on 32-bit
+ * kernels. The syscall entry point is possible wrong and needs to be fixed
+ * in the kernel. For now disable as the code is handling clean 64-bit time_t
+ * and the timeout is relative anyway.
+ */
+#undef __NR_io_pgetevents_time64
+
#ifdef __NR_io_pgetevents
io_syscall6(int, __io_pgetevents, io_pgetevents, io_context_t, ctx,
long, min_nr, long, nr, struct io_event *, events,