From 1e95bb85a9008dd8debe35bcab240841edcda9c8 Mon Sep 17 00:00:00 2001 From: Denys Otrishko Date: Tue, 24 Dec 2019 13:42:48 +0200 Subject: [PATCH] src: make large_pages node.cc include conditional The usage of the relevant methods from the file is conditional so make the include conditional too. Backport-PR-URL: https://github.com/nodejs/node/pull/32092 PR-URL: https://github.com/nodejs/node/pull/31078 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Richard Lau Reviewed-By: Ruben Bridgewater Reviewed-By: David Carlier Reviewed-By: James M Snell Reviewed-By: Rich Trott --- src/node.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/node.cc b/src/node.cc index 9a8603d557efc7..5460f70dc8a134 100644 --- a/src/node.cc +++ b/src/node.cc @@ -65,7 +65,9 @@ #include "inspector/worker_inspector.h" // ParentInspectorHandle #endif +#ifdef NODE_ENABLE_LARGE_CODE_PAGES #include "large_pages/node_large_page.h" +#endif #ifdef NODE_REPORT #include "node_report.h"