fix build with old curl version
authorRemi Collet <remi@php.net>
Thu, 13 Dec 2012 18:05:50 +0000 (18:05 +0000)
committerRemi Collet <remi@php.net>
Thu, 13 Dec 2012 18:05:50 +0000 (18:05 +0000)
php_http_curl_client.c

index 621e05b3d54b5587e388af31e7eaf03e7a480c92..58f0d935a11783cf58706c73f33b4d98e72fd099 100644 (file)
@@ -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)
 {