From: Remi Collet Date: Thu, 13 Dec 2012 18:05:50 +0000 (+0000) Subject: fix build with old curl version X-Git-Tag: RELEASE_2_1_0_RC3~10^2^2~63 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=dada371ebca4e4015b00067254fad1d7c2f06d2f;p=m6w6%2Fext-http fix build with old curl version --- diff --git a/php_http_curl_client.c b/php_http_curl_client.c index 621e05b..58f0d93 100644 --- a/php_http_curl_client.c +++ b/php_http_curl_client.c @@ -642,6 +642,7 @@ static STATUS php_http_curl_client_option_set_portrange(php_http_option_t *opt, return SUCCESS; } +#if PHP_HTTP_CURL_VERSION(7,21,3) static STATUS php_http_curl_client_option_set_resolve(php_http_option_t *opt, zval *val, void *userdata) { php_http_client_t *h = userdata; @@ -670,6 +671,7 @@ static STATUS php_http_curl_client_option_set_resolve(php_http_option_t *opt, zv } return SUCCESS; } +#endif static void php_http_curl_client_options_init(php_http_options_t *registry TSRMLS_DC) {