summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-05-17 16:21:31 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-05-17 16:21:31 +0000
commita4bf1139272498ac3058959b60e19b967efc1b73 (patch)
treeb72480125d3faf210dc20e2691be1f6a504480ad /common
parent1dc1880aa31a8577272841e085a06ac88df37e48 (diff)
Fix some ppoll issue
Diffstat (limited to 'common')
-rw-r--r--common/ppoll.h8
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);