[oe-commits] [meta-openembedded] 04/04: nodejs: Update GCC 4.8 compat patch
git at git.openembedded.org
git at git.openembedded.org
Tue Mar 26 16:44:16 UTC 2019
This is an automated email from the git hooks/post-receive script.
khem pushed a commit to branch master-next
in repository meta-openembedded.
commit 478c35bc015c4bff9a805a6cafbf2f2cf38284f8
Author: Brad Bishop <bradleyb at fuzziesquirrel.com>
AuthorDate: Tue Mar 26 07:58:17 2019 -0400
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 at fuzziesquirrel.com>
Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
.../0004-Make-compatibility-with-gcc-4.8.patch | 23 ++++++++++++++++++++++
1 file changed, 23 insertions(+)
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 cb38362..925c085 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 .
"error::make_unique is not a member of 'std'"
Signed-off-by: Andrej Valek <andrej.valek at siemens.com>
+Signed-off-by: Brad Bishop <bradleyb at fuzziesquirrel.com>
diff -Naur node-v10.15.1/src/cares_wrap.cc node-v10.15.1/src/cares_wrap.cc
--- 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
namespace node {
namespace inspector {
namespace {
+
+diff --git a/src/inspector/main_thread_interface.cc b/src/inspector/main_thread_interface.cc
+index e374c0fd70..05d7d8c60f 100644
+--- a/src/inspector/main_thread_interface.cc
++++ b/src/inspector/main_thread_interface.cc
+@@ -6,6 +6,16 @@
+ #include <functional>
+ #include <unicode/unistr.h>
+
++#ifndef __cpp_lib_make_unique
++namespace std {
++ /// make_unique implementation
++ template<typename T, typename... Args>
++ std::unique_ptr<T> make_unique(Args&&... args) {
++ return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
++ }
++}
++#endif
++
+ namespace node {
+ namespace inspector {
+ namespace {
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list