1570af302Sopenharmony_ci#include "time32.h"
2570af302Sopenharmony_ci#define _GNU_SOURCE
3570af302Sopenharmony_ci#include <time.h>
4570af302Sopenharmony_ci#include <poll.h>
5570af302Sopenharmony_ci
6570af302Sopenharmony_ciint __ppoll_time32(struct pollfd *fds, nfds_t n, const struct timespec32 *ts32, const sigset_t *mask)
7570af302Sopenharmony_ci{
8570af302Sopenharmony_ci	return ppoll(fds, n, !ts32 ? 0 : (&(struct timespec){
9570af302Sopenharmony_ci		.tv_sec = ts32->tv_sec, .tv_nsec = ts32->tv_nsec}), mask);
10570af302Sopenharmony_ci}
11