From d864f63611a86c33da7864e3af5fff3be8332d07 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Mon, 16 Apr 2018 09:12:15 +0200 Subject: [PATCH] src: remove req_wrap-inl.h from stream_base.h This commit removes the inclusion of req_wrap-inl.h in stream_base.h as ReqWrap is not used. This removal required stream_base.h to include async_wrap-inl.h so there is an implementation of BaseObject::object. The above change also affected connect_wrap, which needs to include req_wrap-inl.h to get an implementation of ReqWrap::Dispatched. PR-URL: https://github.com/nodejs/node/pull/20063 Reviewed-By: James M Snell Reviewed-By: Anna Henningsen Reviewed-By: Tiancheng "Timothy" Gu --- src/connect_wrap.h | 2 +- src/stream_base.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/connect_wrap.h b/src/connect_wrap.h index 506108668df..6227542bcbe 100644 --- a/src/connect_wrap.h +++ b/src/connect_wrap.h @@ -4,7 +4,7 @@ #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS #include "env.h" -#include "req_wrap.h" +#include "req_wrap-inl.h" #include "async_wrap.h" #include "v8.h" diff --git a/src/stream_base.h b/src/stream_base.h index dfce7df44a5..96b8589b068 100644 --- a/src/stream_base.h +++ b/src/stream_base.h @@ -4,8 +4,7 @@ #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS #include "env.h" -#include "async_wrap.h" -#include "req_wrap-inl.h" +#include "async_wrap-inl.h" #include "node.h" #include "util.h"