From 3e7c5bcf8702b3a950517d39411cd1bb02f9cb4a 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 `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 Reviewed-By: Michael Dawson --- src/signal_wrap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/signal_wrap.cc b/src/signal_wrap.cc index 8d31dbf62330ae..280c9e3eb91779 100644 --- a/src/signal_wrap.cc +++ b/src/signal_wrap.cc @@ -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()) {