diff --git a/src/node.cc b/src/node.cc index 37d4309aa0c39a..0b319ea1a0bffd 100644 --- a/src/node.cc +++ b/src/node.cc @@ -901,7 +901,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 c22cb22c948bd2..adfb453895a650 100644 --- a/src/node_internals.h +++ b/src/node_internals.h @@ -108,6 +108,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; }