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) {

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to