From 08414969924b42fac21acc598358ef35a8c02f12 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Tue, 17 May 2016 23:52:25 +0200 Subject: [PATCH] src: fix without-intl build In 5d38d543cd, an additional property in node_config.cc was added whose definition depends on having the local `env` variable declared, which in turn depended on `NODE_HAVE_I18N_SUPPORT` being defined. Moving `env = ...` out of the `#ifdef` block allows building via `./configure --without-intl` again. PR-URL: https://github.com/nodejs/node/pull/6820 Reviewed-By: James M Snell Reviewed-By: Myles Borins Reviewed-By: Ben Noordhuis --- src/node_config.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_config.cc b/src/node_config.cc index 414d2e858d96a1..401345f6a608be 100644 --- a/src/node_config.cc +++ b/src/node_config.cc @@ -29,8 +29,8 @@ using v8::Value; void InitConfig(Local target, Local unused, Local context) { -#ifdef NODE_HAVE_I18N_SUPPORT Environment* env = Environment::GetCurrent(context); +#ifdef NODE_HAVE_I18N_SUPPORT READONLY_BOOLEAN_PROPERTY("hasIntl");