svn: /php/php-src/trunk/ext/curl/ interface.c
| From: | Pierre Joye | Date: | Tue, 06 Dec 2011 15:35:07 +0000 |
| Subject: | svn: /php/php-src/trunk/ext/curl/ interface.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-67216@lists.php.net to get a copy of this message | ||
pajoye Tue, 06 Dec 2011 15:35:07 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=320509
Log:
- fix build, CURLOPT_FNMATCH_DATA exists since 7.21.0 only
Changed paths:
U php/php-src/trunk/ext/curl/interface.c
Modified: php/php-src/trunk/ext/curl/interface.c
===================================================================
--- php/php-src/trunk/ext/curl/interface.c 2011-12-06 14:15:27 UTC (rev 320508)
+++ php/php-src/trunk/ext/curl/interface.c 2011-12-06 15:35:07 UTC (rev 320509)
@@ -1982,7 +1982,9 @@
dupch->handlers->fnmatch->func_name = ch->handlers->fnmatch->func_name;
}
dupch->handlers->fnmatch->method = ch->handlers->fnmatch->method;
+#if LIBCURL_VERSION_NUM >= 0x071500 /* Available since 7.21.0 */
curl_easy_setopt(dupch->cp, CURLOPT_FNMATCH_DATA, (void *) dupch);
+#endif
}
efree(dupch->to_free);