summaryrefslogtreecommitdiffstats
path: root/http-curl.patch
blob: b98b612681101e469b2478ddf0f63267c57ae155 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- pecl_http-2.0.0beta3/php_http_curl_client.c.old	2012-12-13 18:57:02.000000000 +0100
+++ pecl_http-2.0.0beta3/php_http_curl_client.c	2012-12-13 18:57:05.000000000 +0100
@@ -642,6 +642,7 @@
 	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 @@
 	}
 	return SUCCESS;
 }
+#endif
 
 static void php_http_curl_client_options_init(php_http_options_t *registry TSRMLS_DC)
 {