Skip to content

Commit ea2d661

Browse files
addaleaxFishrock123
authored andcommitted
src: fix --without-inspector build
Use `HAVE_INSPECTOR` as the 0/1 boolean macro that it is, as opposed to a defined/not-defined boolean. PR-URL: #7078 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michael Dawson <[email protected]>
1 parent c1bd3fe commit ea2d661

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/signal_wrap.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class SignalWrap : public HandleWrap {
6565
SignalWrap* wrap;
6666
ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder());
6767
int signum = args[0]->Int32Value();
68-
#if defined(__POSIX__) && defined(HAVE_INSPECTOR)
68+
#if defined(__POSIX__) && HAVE_INSPECTOR
6969
if (signum == SIGPROF) {
7070
Environment* env = Environment::GetCurrent(args);
7171
if (env->inspector_agent()->IsStarted()) {

0 commit comments

Comments
 (0)