[Asterisk-cvs] asterisk/apps app_curl.c,1.3,1.4
mattf at lists.digium.com
mattf at lists.digium.com
Thu Apr 7 16:25:44 CDT 2005
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv24984/apps
Modified Files:
app_curl.c
Log Message:
Bugfix for old versions of libcurl (#3982)
Index: app_curl.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_curl.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- app_curl.c 21 Jan 2005 07:06:24 -0000 1.3
+++ app_curl.c 7 Apr 2005 21:18:14 -0000 1.4
@@ -104,7 +104,11 @@
curl_easy_setopt(curl, CURLOPT_URL, url);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteMemoryCallback);
+#ifdef CURLOPT_WRITEDATA
curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&chunk);
+#else
+ curl_easy_setopt(curl, CURLOPT_WRITEINFO, (void *)&chunk);
+#endif
curl_easy_setopt(curl, CURLOPT_USERAGENT, "asterisk-libcurl-agent/1.0");
if (post_data) {
More information about the svn-commits
mailing list