diff options
Diffstat (limited to 'meta-oe/recipes-devtools')
-rw-r--r-- | meta-oe/recipes-devtools/nodejs/nodejs/0004-Make-compatibility-with-gcc-4.8.patch | 23 |
1 files changed, 23 insertions, 0 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 cb38362e4..925c085e9 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 | |||
@@ -3,6 +3,7 @@ method to be compatible with gcc < 4.9 . | |||
3 | "error::make_unique is not a member of 'std'" | 3 | "error::make_unique is not a member of 'std'" |
4 | 4 | ||
5 | Signed-off-by: Andrej Valek <andrej.valek@siemens.com> | 5 | Signed-off-by: Andrej Valek <andrej.valek@siemens.com> |
6 | Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> | ||
6 | 7 | ||
7 | diff -Naur node-v10.15.1/src/cares_wrap.cc node-v10.15.1/src/cares_wrap.cc | 8 | diff -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-01-29 08:20:50.000000000 +0100 | 9 | --- node-v10.15.1/src/cares_wrap.cc 2019-01-29 08:20:50.000000000 +0100 |
@@ -44,3 +45,25 @@ diff -Naur node-v10.15.1/src/inspector_agent.cc node-v10.15.1/src/inspector_agen | |||
44 | namespace node { | 45 | namespace node { |
45 | namespace inspector { | 46 | namespace inspector { |
46 | namespace { | 47 | namespace { |
48 | |||
49 | diff --git a/src/inspector/main_thread_interface.cc b/src/inspector/main_thread_interface.cc | ||
50 | index e374c0fd70..05d7d8c60f 100644 | ||
51 | --- a/src/inspector/main_thread_interface.cc | ||
52 | +++ b/src/inspector/main_thread_interface.cc | ||
53 | @@ -6,6 +6,16 @@ | ||
54 | #include <functional> | ||
55 | #include <unicode/unistr.h> | ||
56 | |||
57 | +#ifndef __cpp_lib_make_unique | ||
58 | +namespace std { | ||
59 | + /// make_unique implementation | ||
60 | + template<typename T, typename... Args> | ||
61 | + std::unique_ptr<T> make_unique(Args&&... args) { | ||
62 | + return std::unique_ptr<T>(new T(std::forward<Args>(args)...)); | ||
63 | + } | ||
64 | +} | ||
65 | +#endif | ||
66 | + | ||
67 | namespace node { | ||
68 | namespace inspector { | ||
69 | namespace { | ||