From 41db5aed7a7b5941e5a884f8a452648e19e2098f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 1 Jun 2015 08:45:30 +0200 Subject: http2-download: check for CURLPIPE_MULTIPLEX properly Bug: http://curl.haxx.se/mail/lib-2015-06/0001.html Reported-by: Rafayel Mkrtchyan --- docs/examples/http2-download.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/examples/http2-download.c') diff --git a/docs/examples/http2-download.c b/docs/examples/http2-download.c index a4099a8c1..3b7ca81d3 100644 --- a/docs/examples/http2-download.c +++ b/docs/examples/http2-download.c @@ -165,7 +165,7 @@ static void setup(CURL *hnd, int num) curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYPEER, 0L); curl_easy_setopt(hnd, CURLOPT_SSL_VERIFYHOST, 0L); -#ifdef CURLPIPE_MULTIPLEX +#if (CURLPIPE_MULTIPLEX > 0) /* wait for pipe connection to confirm */ curl_easy_setopt(hnd, CURLOPT_PIPEWAIT, 1L); #endif -- cgit v1.2.3