From: Daniel Stenberg Date: Mon, 1 Jun 2015 06:45:30 +0000 (+0200) Subject: http2-download: check for CURLPIPE_MULTIPLEX properly X-Git-Tag: curl-7_43_0~58 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=41db5aed7a7b5941e5a884f8a452648e19e2098f;p=thirdparty%2Fcurl.git http2-download: check for CURLPIPE_MULTIPLEX properly Bug: http://curl.haxx.se/mail/lib-2015-06/0001.html Reported-by: Rafayel Mkrtchyan --- diff --git a/docs/examples/http2-download.c b/docs/examples/http2-download.c index a4099a8c12..3b7ca81d3c 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