summaryrefslogtreecommitdiff
path: root/net-libs/nodejs/files/nodejs-11.4.0-llhttp.patch
blob: 07ac9af6c6621c0ad4a13209ef592a9c943f0305 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- a/node.gypi
+++ b/node.gypi
@@ -169,11 +169,15 @@
 
     [ 'node_shared_http_parser=="false"', {
       'dependencies': [
-        'deps/http_parser/http_parser.gyp:http_parser',
-        'deps/llhttp/llhttp.gyp:llhttp'
+        'deps/http_parser/http_parser.gyp:http_parser'
       ],
     } ],
 
+    [ '"true"', { 'dependencies': [
+        'deps/llhttp/llhttp.gyp:llhttp'
+      ],
+    }],
+
     [ 'node_shared_cares=="false"', {
       'dependencies': [ 'deps/cares/cares.gyp:cares' ],
     }],
--- a/src/node_metadata.cc
+++ b/src/node_metadata.cc
@@ -2,6 +2,7 @@
 #include "ares.h"
 #include "nghttp2/nghttp2ver.h"
 #include "node.h"
+#include "node_internals.h"
 #include "util.h"
 #include "uv.h"
 #include "v8.h"