diff --git a/devel/libevent/Portfile b/devel/libevent/Portfile
a
|
b
|
|
5 | 5 | |
6 | 6 | name libevent |
7 | 7 | version 2.0.22 |
8 | | revision 2 |
| 8 | revision 3 |
9 | 9 | categories devel |
10 | 10 | platforms darwin |
11 | 11 | license BSD |
… |
… |
|
29 | 29 | sha256 71c2c49f0adadacfdbe6332a372c38cf9c8b7895bb73dabeaa53cdcc1d4e1fa3 |
30 | 30 | |
31 | 31 | # Don't accidentally create flat-namespace dylibs on Yosemite (#44596). |
32 | | patchfiles yosemite-libtool.patch |
| 32 | patchfiles yosemite-libtool.patch \ |
| 33 | patch-sierra-kqueue.diff |
33 | 34 | |
34 | 35 | test.run yes |
35 | 36 | test.target verify |
diff --git a/devel/libevent/files/patch-sierra-kqueue.diff b/devel/libevent/files/patch-sierra-kqueue.diff
new file mode 100644
-
|
+
|
|
| 1 | --- kqueue.c |
| 2 | +++ kqueue.c |
| 3 | @@ -154,7 +154,7 @@ |
| 4 | if (kevent(kq, |
| 5 | kqueueop->changes, 1, kqueueop->events, NEVENT, NULL) != 1 || |
| 6 | (int)kqueueop->events[0].ident != -1 || |
| 7 | - kqueueop->events[0].flags != EV_ERROR) { |
| 8 | + !(kqueueop->events[0].flags & EV_ERROR)) { |
| 9 | event_warn("%s: detected broken kqueue; not using.", __func__); |
| 10 | goto err; |
| 11 | } |