瀏覽代碼

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

Maxim Sobolev 18 年之前
父節點
當前提交
d8424e4cb0
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      lib/xcap/xcap_client.c

+ 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);