summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-mobilephone/sms/files/sms-2.0.3-gcc41.patch')
-rw-r--r--app-mobilephone/sms/files/sms-2.0.3-gcc41.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/app-mobilephone/sms/files/sms-2.0.3-gcc41.patch b/app-mobilephone/sms/files/sms-2.0.3-gcc41.patch
new file mode 100644
index 000000000000..39c7973ca3f2
--- /dev/null
+++ b/app-mobilephone/sms/files/sms-2.0.3-gcc41.patch
@@ -0,0 +1,38 @@
+diff -Nru sms-2.0.3.orig/lib/mr_curl/mr_curl.cc sms-2.0.3/lib/mr_curl/mr_curl.cc
+--- sms-2.0.3.orig/lib/mr_curl/mr_curl.cc 2005-02-04 02:37:39.000000000 +0200
++++ sms-2.0.3/lib/mr_curl/mr_curl.cc 2006-09-24 13:48:25.725464250 +0300
+@@ -4,6 +4,18 @@
+
+ using namespace std;
+
++size_t Curl_write_data(const void *ptr, size_t size,
++ size_t nmemb, Curl *curl) {
++ curl->buffer->write((const char*)ptr, size * nmemb);
++ return curl->buffer->bad() ? 0 : size*nmemb;
++}
++
++size_t Curl_write_header(const void *ptr, size_t size,
++ size_t nmemb, Curl *curl) {
++ curl->headers->write((const char*)ptr, size * nmemb);
++ return curl->headers->bad() ? 0 : size*nmemb;
++}
++
+ void FormParser::SetPage(const std::string &new_html)
+ {
+ action = "";
+@@ -428,15 +440,3 @@
+ SetOpt(CURLOPT_SSL_VERIFYHOST, 0);
+ }
+
+-size_t Curl_write_data(const void *ptr, size_t size,
+- size_t nmemb, Curl *curl) {
+- curl->buffer->write((const char*)ptr, size * nmemb);
+- return curl->buffer->bad() ? 0 : size*nmemb;
+-}
+-
+-size_t Curl_write_header(const void *ptr, size_t size,
+- size_t nmemb, Curl *curl) {
+- curl->headers->write((const char*)ptr, size * nmemb);
+- return curl->headers->bad() ? 0 : size*nmemb;
+-}
+-