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: #7258
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
addaleax authored and Fishrock123 committed Jul 5, 2016
1 parent 7da8a41 commit 38d36e3
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 @@ -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;
Expand Down

0 comments on commit 38d36e3

Please sign in to comment.