Skip to content

Commit

Permalink
src: fix --without-inspector build
Browse files Browse the repository at this point in the history
`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: nodejs#7258
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
addaleax committed Jun 13, 2016
1 parent 05de4d7 commit 0c73c9f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3359,11 +3359,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;
Expand Down

0 comments on commit 0c73c9f

Please sign in to comment.