aboutsummaryrefslogtreecommitdiff
path: root/www/p5-WWW-Curl/files/patch-Curl.xs
diff options
context:
space:
mode:
authorPeter Pentchev <roam@FreeBSD.org>2006-07-13 14:22:26 +0000
committerPeter Pentchev <roam@FreeBSD.org>2006-07-13 14:22:26 +0000
commita8eee49ea647a4ee058a7ead35a13857cb3ab6c6 (patch)
tree96609895f2a62d598d1dea3dd3f9de229ec34ab0 /www/p5-WWW-Curl/files/patch-Curl.xs
parentfdba27ab15b68a6446dac769896e2c0ffb933ca2 (diff)
downloadports-a8eee49ea647a4ee058a7ead35a13857cb3ab6c6.tar.gz
ports-a8eee49ea647a4ee058a7ead35a13857cb3ab6c6.zip
Update to WWW-Curl 3.02, mostly based on the PR, but with some
additional modifications. PR: 98560 Submitted by: Rong-En Fan <rafan@infor.org>
Notes
Notes: svn path=/head/; revision=167692
Diffstat (limited to 'www/p5-WWW-Curl/files/patch-Curl.xs')
-rw-r--r--www/p5-WWW-Curl/files/patch-Curl.xs59
1 files changed, 9 insertions, 50 deletions
diff --git a/www/p5-WWW-Curl/files/patch-Curl.xs b/www/p5-WWW-Curl/files/patch-Curl.xs
index cb4da239bdbc..e93f1dfbe1d7 100644
--- a/www/p5-WWW-Curl/files/patch-Curl.xs
+++ b/www/p5-WWW-Curl/files/patch-Curl.xs
@@ -1,61 +1,20 @@
-Index: Curl.xs
-===================================================================
-RCS file: /home/cvs/ringlet/perl/contrib/net/WWW-Curl/Curl.xs,v
-retrieving revision 1.1.1.1
-retrieving revision 1.2
-diff -u -r1.1.1.1 -r1.2
---- Curl.xs 20 Apr 2004 10:55:02 -0000 1.1.1.1
-+++ Curl.xs 20 Apr 2004 11:17:25 -0000 1.2
-@@ -66,6 +66,12 @@
+--- Curl.xs.orig Thu Jul 13 14:54:37 2006
++++ Curl.xs Thu Jul 13 14:55:34 2006
+@@ -64,12 +64,17 @@
- } perl_curl_easy;
+ typedef struct {
+#if LIBCURL_VERSION_NUM >= 0x070b01
-+typedef struct {
+ struct curl_httppost * post;
+ struct curl_httppost * last;
-+} perl_curl_form;
+#else
#if LIBCURL_VERSION_NUM >= 0x070900
- typedef struct {
struct HttpPost * post;
-@@ -77,6 +83,7 @@
+ struct HttpPost * last;
+ #else
+ void * post;
void * last;
- } perl_curl_form;
- #endif
-+#endif
-
- /* switch from curl option codes to the relevant callback index */
- static perl_curl_easy_callback_code callback_index(int option) {
-@@ -101,9 +108,11 @@
- return CALLBACK_PROGRESS;
- break;
-
-+#if (LIBCURL_VERSION_NUM<0x070b01)
- case CURLOPT_PASSWDFUNCTION:
- case CURLOPT_PASSWDDATA:
- return CALLBACK_PASSWD;
-+#endif
- break;
- }
- croak("Bad callback index requested\n");
-@@ -617,7 +626,9 @@
- case CURLOPT_INFILE:
- case CURLOPT_WRITEHEADER:
- case CURLOPT_PROGRESSDATA:
-+#if (LIBCURL_VERSION_NUM<0x070b01)
- case CURLOPT_PASSWDDATA:
-+#endif
- perl_curl_easy_register_callback(self,&(self->callback_ctx[callback_index(option)]),value);
- break;
-
-@@ -626,7 +637,9 @@
- case CURLOPT_READFUNCTION:
- case CURLOPT_HEADERFUNCTION:
- case CURLOPT_PROGRESSFUNCTION:
-+#if (LIBCURL_VERSION_NUM<0x070b01)
- case CURLOPT_PASSWDFUNCTION:
+#endif
- perl_curl_easy_register_callback(self,&(self->callback[callback_index(option)]),value);
- break;
+ #endif
+ } perl_curl_form;