diff --git a/src/node.cc b/src/node.cc index 8c5e811d6e9130..d57665a9fd53ae 100644 --- a/src/node.cc +++ b/src/node.cc @@ -924,7 +924,7 @@ Local UVException(Isolate* isolate, // Look up environment variable unless running as setuid root. -inline bool SafeGetenv(const char* key, std::string* text) { +bool SafeGetenv(const char* key, std::string* text) { #ifndef _WIN32 // TODO(bnoordhuis) Should perhaps also check whether getauxval(AT_SECURE) // is non-zero on Linux. diff --git a/src/node_internals.h b/src/node_internals.h index 9d57becc26ceb9..52fa17a8129168 100644 --- a/src/node_internals.h +++ b/src/node_internals.h @@ -114,6 +114,8 @@ void RegisterSignalHandler(int signal, bool reset_handler = false); #endif +bool SafeGetenv(const char* key, std::string* text); + template constexpr size_t arraysize(const T(&)[N]) { return N; }