1
From: Ben Noordhuis <info@bnoordhuis.nl>
2
Origin: upstream, https://github.com/joyent/libuv/commit/026241ca
3
Last-Update: 2013-11-30
4
Subject: unbreak bsd build
5
--- a/deps/uv/src/unix/darwin.c
6
+++ b/deps/uv/src/unix/darwin.c
11
-void uv__platform_invalidate_fd(uv_loop_t* loop, int fd) {
12
- struct kevent* events;
16
- assert(loop->watchers != NULL);
18
- events = (struct kevent*) loop->watchers[loop->nwatchers];
19
- nfds = (uintptr_t) loop->watchers[loop->nwatchers + 1];
23
- /* Invalidate events with same file descriptor */
24
- for (i = 0; i < nfds; i++)
25
- if ((int) events[i].ident == fd)
26
- events[i].ident = -1;
30
static void uv__cf_loop_runner(void* arg) {
33
--- a/deps/uv/src/unix/kqueue.c
34
+++ b/deps/uv/src/unix/kqueue.c
39
+void uv__platform_invalidate_fd(uv_loop_t* loop, int fd) {
40
+ struct kevent* events;
44
+ assert(loop->watchers != NULL);
46
+ events = (struct kevent*) loop->watchers[loop->nwatchers];
47
+ nfds = (uintptr_t) loop->watchers[loop->nwatchers + 1];
51
+ /* Invalidate events with same file descriptor */
52
+ for (i = 0; i < nfds; i++)
53
+ if ((int) events[i].ident == fd)
54
+ events[i].ident = -1;
58
static void uv__fs_event(uv_loop_t* loop, uv__io_t* w, unsigned int fflags) {
59
uv_fs_event_t* handle;