summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs/0004-Make-compatibility-with-gcc-4.8.patch36
1 files changed, 28 insertions, 8 deletions
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/0004-Make-compatibility-with-gcc-4.8.patch b/meta-oe/recipes-devtools/nodejs/nodejs/0004-Make-compatibility-with-gcc-4.8.patch
index 2b325b675f..cb38362e4f 100644
--- a/meta-oe/recipes-devtools/nodejs/nodejs/0004-Make-compatibility-with-gcc-4.8.patch
+++ b/meta-oe/recipes-devtools/nodejs/nodejs/0004-Make-compatibility-with-gcc-4.8.patch
@@ -5,22 +5,42 @@ method to be compatible with gcc < 4.9 .
5Signed-off-by: Andrej Valek <andrej.valek@siemens.com> 5Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
6 6
7diff -Naur node-v10.15.1/src/cares_wrap.cc node-v10.15.1/src/cares_wrap.cc 7diff -Naur node-v10.15.1/src/cares_wrap.cc node-v10.15.1/src/cares_wrap.cc
8--- node-v10.15.1/src/cares_wrap.cc 2019-02-17 09:40:36.040538319 +0100 8--- node-v10.15.1/src/cares_wrap.cc 2019-01-29 08:20:50.000000000 +0100
9+++ node-v10.15.1/src/cares_wrap.cc 2019-02-17 09:39:57.883668702 +0100 9+++ node-v10.15.1/src/cares_wrap.cc 2019-02-21 16:22:25.489131665 +0100
10@@ -52,6 +52,16 @@ 10@@ -52,6 +52,16 @@
11 # define AI_V4MAPPED 0 11 # define AI_V4MAPPED 0
12 #endif 12 #endif
13 13
14+#ifndef __cpp_lib_make_unique 14+#ifndef __cpp_lib_make_unique
15+ namespace std { 15+namespace std {
16+ /// make_unique implementation 16+ /// make_unique implementation
17+ template<typename T, typename... Args> 17+ template<typename T, typename... Args>
18+ std::unique_ptr<T> make_unique(Args&&... args) { 18+ std::unique_ptr<T> make_unique(Args&&... args) {
19+ return std::unique_ptr<T>(new T(std::forward<Args>(args)...)); 19+ return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
20+ }
21+ } 20+ }
21+}
22+#endif 22+#endif
23+ 23+
24 namespace node { 24 namespace node {
25 namespace cares_wrap { 25 namespace cares_wrap {
26 26
27diff -Naur node-v10.15.1/src/inspector_agent.cc node-v10.15.1/src/inspector_agent.cc
28--- node-v10.15.1/src/inspector_agent.cc 2019-01-29 08:20:50.000000000 +0100
29+++ node-v10.15.1/src/inspector_agent.cc 2019-02-21 16:22:09.000185992 +0100
30@@ -24,6 +24,16 @@
31 #include <pthread.h>
32 #endif // __POSIX__
33
34+#ifndef __cpp_lib_make_unique
35+namespace std {
36+ /// make_unique implementation
37+ template<typename T, typename... Args>
38+ std::unique_ptr<T> make_unique(Args&&... args) {
39+ return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
40+ }
41+}
42+#endif
43+
44 namespace node {
45 namespace inspector {
46 namespace {