summaryrefslogtreecommitdiffstats
path: root/common/ppoll.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/ppoll.h')
-rw-r--r--common/ppoll.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/ppoll.h b/common/ppoll.h
new file mode 100644
index 00000000..6d84a2e8
--- /dev/null
+++ b/common/ppoll.h
@@ -0,0 +1,5 @@
+static inline int 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);
+}