From: Felix Fietkau Date: Tue, 18 Jun 2013 07:57:39 +0000 (+0200) Subject: uloop: fix edge trigger handling on mac os x X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cd5238b5003ab8b4bbceedbf89f59542f2629b45;p=oweals%2Flibubox.git uloop: fix edge trigger handling on mac os x Signed-off-by: Felix Fietkau --- diff --git a/uloop.c b/uloop.c index db8cacd..3746520 100644 --- a/uloop.c +++ b/uloop.c @@ -181,6 +181,7 @@ static int uloop_fetch_events(int timeout) if (u->flags & ULOOP_EDGE_DEFER) { u->flags &= ~ULOOP_EDGE_DEFER; + u->flags |= ULOOP_EDGE_TRIGGER; register_kevent(u, u->flags); } } diff --git a/uloop.h b/uloop.h index 1d32c39..975e40b 100644 --- a/uloop.h +++ b/uloop.h @@ -56,7 +56,7 @@ struct uloop_fd bool error; bool registered; #ifdef USE_KQUEUE - bool flags; + uint8_t flags; #endif };