diff options
author | Andrej Valek <andrej.valek@siemens.com> | 2019-02-17 12:03:21 +0100 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-02-17 12:40:56 -0800 |
commit | 1c8e4a679ae382f953b2e5c7a4966a4646314f3e (patch) | |
tree | 7da4c584aa7444f0a35eede0e0700b3ed794ea3e /meta-oe/recipes-devtools/nodejs/nodejs/0004-Make-compatibility-with-gcc-4.8.patch | |
parent | b1ccca4bacda568062804c7c90aeb15e704c2eb9 (diff) | |
download | meta-openembedded-contrib-1c8e4a679ae382f953b2e5c7a4966a4646314f3e.tar.gz |
nodejs 8.15.0 -> 10.15.1
Update nodejs to active 10.x LTS release 10.15.1.
- link atomic library
- make it compatible with gcc < 4.9
Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools/nodejs/nodejs/0004-Make-compatibility-with-gcc-4.8.patch')
-rw-r--r-- | meta-oe/recipes-devtools/nodejs/nodejs/0004-Make-compatibility-with-gcc-4.8.patch | 26 |
1 files changed, 26 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 new file mode 100644 index 0000000000..2b325b675f --- /dev/null +++ b/meta-oe/recipes-devtools/nodejs/nodejs/0004-Make-compatibility-with-gcc-4.8.patch @@ -0,0 +1,26 @@ +Implement function as wrapper for std::make_unique +method to be compatible with gcc < 4.9 . +"error::make_unique is not a member of 'std'" + +Signed-off-by: Andrej Valek <andrej.valek@siemens.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-02-17 09:40:36.040538319 +0100 ++++ node-v10.15.1/src/cares_wrap.cc 2019-02-17 09:39:57.883668702 +0100 +@@ -52,6 +52,16 @@ + # define AI_V4MAPPED 0 + #endif + ++#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 cares_wrap { + |