~ubuntu-branches/ubuntu/trusty/nodejs/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/patches/1005_unbreak_bsd_builds.patch

  • Committer: Package Import Robot
  • Author(s): Jérémy Lal
  • Date: 2013-12-12 23:04:07 UTC
  • mfrom: (1.1.30)
  • Revision ID: package-import@ubuntu.com-20131212230407-xfa6gka4c6oatsx1
Tags: 0.10.23~dfsg1-1
* Upstream update.
* Refresh patches, remove 1005 patch, applied upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
7
 
@@ -102,25 +102,6 @@
8
 
 }
9
 
 
10
 
 
11
 
-void uv__platform_invalidate_fd(uv_loop_t* loop, int fd) {
12
 
-  struct kevent* events;
13
 
-  uintptr_t i;
14
 
-  uintptr_t nfds;
15
 
-
16
 
-  assert(loop->watchers != NULL);
17
 
-
18
 
-  events = (struct kevent*) loop->watchers[loop->nwatchers];
19
 
-  nfds = (uintptr_t) loop->watchers[loop->nwatchers + 1];
20
 
-  if (events == NULL)
21
 
-    return;
22
 
-
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;
27
 
-}
28
 
-
29
 
-
30
 
 static void uv__cf_loop_runner(void* arg) {
31
 
   uv_loop_t* loop;
32
 
 
33
 
--- a/deps/uv/src/unix/kqueue.c
34
 
+++ b/deps/uv/src/unix/kqueue.c
35
 
@@ -264,6 +264,25 @@
36
 
 }
37
 
 
38
 
 
39
 
+void uv__platform_invalidate_fd(uv_loop_t* loop, int fd) {
40
 
+  struct kevent* events;
41
 
+  uintptr_t i;
42
 
+  uintptr_t nfds;
43
 
+
44
 
+  assert(loop->watchers != NULL);
45
 
+
46
 
+  events = (struct kevent*) loop->watchers[loop->nwatchers];
47
 
+  nfds = (uintptr_t) loop->watchers[loop->nwatchers + 1];
48
 
+  if (events == NULL)
49
 
+    return;
50
 
+
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;
55
 
+}
56
 
+
57
 
+
58
 
 static void uv__fs_event(uv_loop_t* loop, uv__io_t* w, unsigned int fflags) {
59
 
   uv_fs_event_t* handle;
60
 
   struct kevent ev;