]> granicus.if.org Git - curl/commitdiff
http2-download: check for CURLPIPE_MULTIPLEX properly
authorDaniel Stenberg <daniel@haxx.se>
Mon, 1 Jun 2015 06:45:30 +0000 (08:45 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 1 Jun 2015 06:45:30 +0000 (08:45 +0200)
Bug: http://curl.haxx.se/mail/lib-2015-06/0001.html
Reported-by: Rafayel Mkrtchyan
docs/examples/http2-download.c

index a4099a8c12b120384520b9a42a4695f838c92e66..3b7ca81d3c5695a3cb079395371f29dd6158cb04 100644 (file)
@@ -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