From fb9a204de249749416d9ca05cbdb4530262999e5 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 31 Aug 2018 21:58:35 +0900 Subject: [PATCH] nghttpx: Fix compile error without mruby --- src/shrpx_worker.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/shrpx_worker.cc b/src/shrpx_worker.cc index 89c55e95..98201e81 100644 --- a/src/shrpx_worker.cc +++ b/src/shrpx_worker.cc @@ -181,10 +181,12 @@ void Worker::replace_downstream_config( std::vector>(groups.size()); std::map addr_groups_indexer; +#ifdef HAVE_MRUBY // TODO It is a bit less efficient because // mruby::create_mruby_context returns std::unique_ptr and we cannot // use std::make_shared. std::map> shared_mruby_ctxs; +#endif // HAVE_MRUBY for (size_t i = 0; i < groups.size(); ++i) { auto &src = groups[i];