diff options
-rw-r--r-- | common/ppoll.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/common/ppoll.h b/common/ppoll.h index 6d84a2e8..d9096901 100644 --- a/common/ppoll.h +++ b/common/ppoll.h @@ -1,4 +1,10 @@ -static inline int ppoll(struct pollfd *fds, nfds_t nfds, +#ifdef ppoll +#undef ppoll +#endif + +#define ppoll compat_ppoll + +static inline int compat_ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout, const sigset_t *sigmask) { return poll(fds, nfds, timeout ? timeout->tv_sec * 1000 : 500); |