Index: base/third_party/libevent/kqueue.c |
diff --git a/base/third_party/libevent/kqueue.c b/base/third_party/libevent/kqueue.c |
index ee740eec1d675e915fde959d93ace04a4ee5c7ab..a91ab03d1c21cd7a2d6a3993f9e95cadacad877a 100644 |
--- a/base/third_party/libevent/kqueue.c |
+++ b/base/third_party/libevent/kqueue.c |
@@ -153,7 +153,7 @@ kq_init(struct event_base *base) |
if (kevent(kq, |
kqueueop->changes, 1, kqueueop->events, NEVENT, NULL) != 1 || |
kqueueop->events[0].ident != -1 || |
- kqueueop->events[0].flags != EV_ERROR) { |
+ !(kqueueop->events[0].flags & EV_ERROR)) { |
event_warn("%s: detected broken kqueue; not using.", __func__); |
free(kqueueop->changes); |
free(kqueueop->events); |