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 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 +++ node-v10.15.1/src/cares_wrap.cc 2019-02-21 16:22:25.489131665 +0100 @@ -52,6 +52,16 @@ # define AI_V4MAPPED 0 #endif +#ifndef __cpp_lib_make_unique +namespace std { + /// make_unique implementation + template + std::unique_ptr make_unique(Args&&... args) { + return std::unique_ptr(new T(std::forward(args)...)); + } +} +#endif + namespace node { namespace cares_wrap { diff -Naur node-v10.15.1/src/inspector_agent.cc node-v10.15.1/src/inspector_agent.cc --- node-v10.15.1/src/inspector_agent.cc 2019-01-29 08:20:50.000000000 +0100 +++ node-v10.15.1/src/inspector_agent.cc 2019-02-21 16:22:09.000185992 +0100 @@ -24,6 +24,16 @@ #include #endif // __POSIX__ +#ifndef __cpp_lib_make_unique +namespace std { + /// make_unique implementation + template + std::unique_ptr make_unique(Args&&... args) { + return std::unique_ptr(new T(std::forward(args)...)); + } +} +#endif + namespace node { namespace inspector { namespace {