summaryrefslogtreecommitdiff
path: root/event.c
diff options
context:
space:
mode:
authorroot <root>2010-10-24 17:19:47 +0000
committerroot <root>2010-10-24 17:19:47 +0000
commitef2069bdee8f06a2187f1827d4623522ccb0d9ac (patch)
tree61d5aa209b52b981c77e4727f82d04cd7859604c /event.c
parent2946c877b875855d5579ae2e5c254159b3bfda32 (diff)
*** empty log message ***
Diffstat (limited to 'event.c')
-rw-r--r--event.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/event.c b/event.c
index b0eb475..d2e5078 100644
--- a/event.c
+++ b/event.c
@@ -47,6 +47,9 @@
# include "event.h"
#endif
+/* same definition as in ev.c */
+#define EV_TV_SET(tv,t) do { tv.tv_sec = (long)t; tv.tv_usec = (long)((t - tv.tv_sec) * 1e6); } while (0)
+
#if EV_MULTIPLICITY
# define dLOOPev struct ev_loop *loop = (struct ev_loop *)ev->ev_base
# define dLOOPbase struct ev_loop *loop = (struct ev_loop *)base