2
0
Эх сурвалжийг харах

Make buildable with the latest version of the curl (CURLOPT_MUTE has
been depreciated).

Maxim Sobolev 18 жил өмнө
parent
commit
d8424e4cb0

+ 2 - 0
lib/xcap/xcap_client.c

@@ -245,8 +245,10 @@ int xcap_query(const char *uri, xcap_query_params_t *params, char **buf, int *bs
 		curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, write_data_func);
 		curl_easy_setopt(handle, CURLOPT_WRITEDATA, &data);
 
+#ifdef CURLOPT_MUTE
 		/* be quiet */
 		curl_easy_setopt(handle, CURLOPT_MUTE, 1);
+#endif /* CURLOPT_MUTE */
 		
 		/* non-2xx => error */
 		curl_easy_setopt(handle, CURLOPT_FAILONERROR, 1);