From 155b1f5df9b772e861da2b72aafd8342013b76a2 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 18 May 2015 14:09:32 +0200 Subject: http2: fix build when NOT h2-enabled --- lib/url.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/url.c') diff --git a/lib/url.c b/lib/url.c index 3425039de..bc342b0f9 100644 --- a/lib/url.c +++ b/lib/url.c @@ -3365,7 +3365,7 @@ ConnectionExists(struct SessionHandle *data, infof(data, "Pipe is full, skip (%zu)\n", pipeLen); continue; } - +#ifdef USE_NGHTTP2 /* If multiplexed, make sure we don't go over concurrency limit */ if(check->bits.multiplex) { /* Multiplexed connections can only be HTTP/2 for now */ @@ -3376,7 +3376,7 @@ ConnectionExists(struct SessionHandle *data, continue; } } - +#endif /* We can't use the connection if the pipe is penalized */ if(Curl_pipeline_penalized(data, check)) { infof(data, "Penalized, skip\n"); -- cgit v1.2.3