From 38d36e32853aee8472257e7d205b30607fe1efa6 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Tue, 31 May 2016 19:28:05 +0200 Subject: [PATCH] src: fix --without-inspector build `use_inspector` is not available if `HAVE_INSPECTOR` is false. Before this commit, one usage of it would show up as an undeclared identifier (introduced in a766ebf). PR-URL: https://github.com/nodejs/node/pull/7258 Reviewed-By: Ben Noordhuis Reviewed-By: Colin Ihrig --- src/node.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/node.cc b/src/node.cc index 680fd1add188a0..a78293e67a1477 100644 --- a/src/node.cc +++ b/src/node.cc @@ -3443,11 +3443,15 @@ static bool ParseDebugOpt(const char* arg) { PrintHelp(); exit(12); } +#if HAVE_INSPECTOR if (use_inspector) { inspector_port = port_int; } else { +#endif debug_port = port_int; +#if HAVE_INSPECTOR } +#endif } return true;