uloop: fix edge trigger handling on mac os x

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
Felix Fietkau 2013-06-18 09:57:39 +02:00
parent ae40b66130
commit cd5238b500
2 changed files with 2 additions and 1 deletions

View file

@ -181,6 +181,7 @@ static int uloop_fetch_events(int timeout)
if (u->flags & ULOOP_EDGE_DEFER) { if (u->flags & ULOOP_EDGE_DEFER) {
u->flags &= ~ULOOP_EDGE_DEFER; u->flags &= ~ULOOP_EDGE_DEFER;
u->flags |= ULOOP_EDGE_TRIGGER;
register_kevent(u, u->flags); register_kevent(u, u->flags);
} }
} }

View file

@ -56,7 +56,7 @@ struct uloop_fd
bool error; bool error;
bool registered; bool registered;
#ifdef USE_KQUEUE #ifdef USE_KQUEUE
bool flags; uint8_t flags;
#endif #endif
}; };