From a4bf1139272498ac3058959b60e19b967efc1b73 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 17 May 2007 16:21:31 +0000 Subject: Fix some ppoll issue --- common/ppoll.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'common') 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); -- cgit