mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-07 02:28:53 +08:00
nghttpx: Fix build error without mruby
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user