diff options
author | root <root> | 2007-11-08 23:53:41 +0000 |
---|---|---|
committer | root <root> | 2007-11-08 23:53:41 +0000 |
commit | 93de14fb2ac9996d3330d1fce388e75b3b2fb91a (patch) | |
tree | 37ac18931d135b16a4a620e0a4ed6219d57b4847 | |
parent | e41dfc2c8396ec60ec237e2c5cdf11b9dbb856ac (diff) |
*** empty log message ***
-rw-r--r-- | event.c | 8 | ||||
-rw-r--r-- | event_compat.h | 2 |
2 files changed, 7 insertions, 3 deletions
@@ -250,14 +250,16 @@ int event_del (struct event *ev) void event_active (struct event *ev, int res, short ncalls) { + dLOOPev; + if (res & EV_TIMEOUT) - ev_feed_event (&ev->to, res & EV_TIMEOUT); + ev_feed_event (EV_A_ &ev->to, res & EV_TIMEOUT); if (res & EV_SIGNAL) - ev_feed_event (&ev->iosig.sig, res & EV_SIGNAL); + ev_feed_event (EV_A_ &ev->iosig.sig, res & EV_SIGNAL); if (res & (EV_READ | EV_WRITE)) - ev_feed_event (&ev->iosig.io, res & (EV_READ | EV_WRITE)); + ev_feed_event (EV_A_ &ev->iosig.io, res & (EV_READ | EV_WRITE)); } int event_pending (struct event *ev, short events, struct timeval *tv) diff --git a/event_compat.h b/event_compat.h index 490757a..84ca5bf 100644 --- a/event_compat.h +++ b/event_compat.h @@ -28,7 +28,9 @@ extern "C" { #endif +#ifndef WIN32 #include <sys/types.h> +#endif #include <sys/time.h> #include <stdint.h> #include <stdarg.h> |