musl/compat/time32/ppoll_time32.c

11 lines
299 B
C

#include "time32.h"
#define _GNU_SOURCE
#include <time.h>
#include <poll.h>
int __ppoll_time32(struct pollfd *fds, nfds_t n, const struct timespec32 *ts32, const sigset_t *mask)
{
return ppoll(fds, n, !ts32 ? 0 : (&(struct timespec){
.tv_sec = ts32->tv_sec, .tv_nsec = ts32->tv_nsec}), mask);
}