diff options
author | Nick Kreeger <nick.kreeger@gmail.com> | 2020-03-16 06:22:33 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2020-04-03 02:17:38 +0300 |
commit | 12a2997bed0efa80d17b498d28c2186b6f73bdaf (patch) | |
tree | d8f648eb165331356240f590024796994538fbd6 /src/node_sockaddr.h | |
parent | a4dce9ab86a29534ba91c5c46df4983ee265b532 (diff) |
src: fix extra includes of "env.h" and "env-inl.h"
Due to how the Environment class is used throughout the codebase, there
are a log of includes referencing eitehr env.h or env-inl.h.
This commit cleans up the remaining extra includes of 'env.h' or
'env-inl.h' and adds forward declarations of the Environment class.
PR-URL: https://github.com/nodejs/node/pull/32293
Refs: https://github.com/nodejs/node/issues/27531
Fixes: https://github.com/nodejs/node/issues/27531
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_sockaddr.h')
-rw-r--r-- | src/node_sockaddr.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/node_sockaddr.h b/src/node_sockaddr.h index 2e3ae09ce3b..c0d006a4d6e 100644 --- a/src/node_sockaddr.h +++ b/src/node_sockaddr.h @@ -3,7 +3,6 @@ #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS -#include "env.h" #include "memory_tracker.h" #include "node.h" #include "uv.h" @@ -14,6 +13,8 @@ namespace node { +class Environment; + class SocketAddress : public MemoryRetainer { public: struct Hash { |