mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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: https://github.com/nodejs/node/pull/7078 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
This commit is contained in:
1 parent
c1bd3fe14c
commit
ea2d661447
1 file changed
+1
-1
+1
-1
@@ -65,7 +65,7 @@ class SignalWrap : public HandleWrap {
|
||||
SignalWrap* wrap;
|
||||
ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder());
|
||||
int signum = args[0]->Int32Value();
|
||||
#if defined(__POSIX__) && defined(HAVE_INSPECTOR)
|
||||
#if defined(__POSIX__) && HAVE_INSPECTOR
|
||||
if (signum == SIGPROF) {
|
||||
Environment* env = Environment::GetCurrent(args);
|
||||
if (env->inspector_agent()->IsStarted()) {
|
||||
|
||||
Reference in new issue
Block a user