aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--event.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/event.c b/event.c
index 6398b7d..10919e4 100644
--- a/event.c
+++ b/event.c
@@ -123,7 +123,11 @@ int event_process(const struct timespec *timeout)
j++;
}
}
+#if (__GLIBC__ >= 2 && __GLIBC_MINOR__ >= 4)
int ready = ppoll(fds, j, timeout, NULL);
+#else
+ int ready = poll(fds, j, timeout->tv_sec * 1000000 + timeout->tv_nsec / 1000000);
+#endif
if (ready > 0) {
//search the file descriptors, call all relavant callbacks
td>Add support for Firefox 5.0v1.35Jonathan McCrohan3-3/+3 2011-04-26Fixing internal version numbers.v1.34Jonathan McCrohan4-6/+6 2011-04-26Update source versionJonathan McCrohan1-5/+5 2011-04-26remove old versionJonathan McCrohan1-0/+0