nghttpx: Fix build error without mruby

This commit is contained in:
Tatsuhiro Tsujikawa 2022-05-14 17:44:53 +09:00
parent 8ad8d70f62
commit 76ffd6bf96
3 changed files with 6 additions and 0 deletions

View File

@ -466,7 +466,9 @@ void Http2Upstream::start_downstream(Downstream *downstream) {
void Http2Upstream::initiate_downstream(Downstream *downstream) { void Http2Upstream::initiate_downstream(Downstream *downstream) {
int rv; int rv;
#ifdef HAVE_MRUBY
DownstreamConnection *dconn_ptr; DownstreamConnection *dconn_ptr;
#endif // HAVE_MRUBY
for (;;) { for (;;) {
auto dconn = handler_->get_downstream_connection(rv, downstream); auto dconn = handler_->get_downstream_connection(rv, downstream);

View File

@ -2347,7 +2347,9 @@ void Http3Upstream::start_downstream(Downstream *downstream) {
void Http3Upstream::initiate_downstream(Downstream *downstream) { void Http3Upstream::initiate_downstream(Downstream *downstream) {
int rv; int rv;
#ifdef HAVE_MRUBY
DownstreamConnection *dconn_ptr; DownstreamConnection *dconn_ptr;
#endif // HAVE_MRUBY
for (;;) { for (;;) {
auto dconn = handler_->get_downstream_connection(rv, downstream); auto dconn = handler_->get_downstream_connection(rv, downstream);

View File

@ -463,7 +463,9 @@ int htp_hdrs_completecb(llhttp_t *htp) {
return 0; return 0;
} }
#ifdef HAVE_MRUBY
DownstreamConnection *dconn_ptr; DownstreamConnection *dconn_ptr;
#endif // HAVE_MRUBY
for (;;) { for (;;) {
auto dconn = handler->get_downstream_connection(rv, downstream); auto dconn = handler->get_downstream_connection(rv, downstream);