diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2019-03-26 07:58:17 -0400 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-03-26 09:43:57 -0700 |
commit | 478c35bc015c4bff9a805a6cafbf2f2cf38284f8 (patch) | |
tree | f43e22f3a659ff956236055f999cea6e91149c44 | |
parent | a61246124dc225e7ae91ecc9958c42f315043740 (diff) | |
download | meta-openembedded-478c35bc015c4bff9a805a6cafbf2f2cf38284f8.tar.gz |
nodejs: Update GCC 4.8 compat patch
GCC 4.8 compatibility was lost moving from 10.15.1 to 10.15.3. Add
another wrapper for std::make_unique to restore it.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-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 { | ||