summaryrefslogtreecommitdiff
path: root/ftp/curl
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2003-06-16 02:50:28 +0000
committerKris Kennaway <kris@FreeBSD.org>2003-06-16 02:50:28 +0000
commitbc7de3495f489a63887020ea707aa776e3d4a632 (patch)
tree8e1b95d28c94b11ee74d279123d00c71632c511e /ftp/curl
parentQuiet compiler warnings on sparc64 by adding missing #includes (diff)
Fix LP64 bugs and bump PORTREVISION. This still detects the bogus
gethostbyaddr_r() "implementation" in libc, which may be causing problems in certain cases.
Notes
Notes: svn path=/head/; revision=83087
Diffstat (limited to 'ftp/curl')
-rw-r--r--ftp/curl/Makefile1
-rw-r--r--ftp/curl/files/patch-lib::ftp.c11
-rw-r--r--ftp/curl/files/patch-lib::hostip.c16
-rw-r--r--ftp/curl/files/patch-lib::urldata.h11
-rw-r--r--ftp/curl/files/patch-src::main.c11
5 files changed, 50 insertions, 0 deletions
diff --git a/ftp/curl/Makefile b/ftp/curl/Makefile
index 8961a1c0c55d..cffbe28ad47b 100644
--- a/ftp/curl/Makefile
+++ b/ftp/curl/Makefile
@@ -7,6 +7,7 @@
PORTNAME= curl
PORTVERSION= 7.10.5
+PORTREVISION= 1
CATEGORIES= ftp ipv6 www
MASTER_SITES= http://curl.haxx.se/download/ \
${MASTER_SITE_SOURCEFORGE} \
diff --git a/ftp/curl/files/patch-lib::ftp.c b/ftp/curl/files/patch-lib::ftp.c
new file mode 100644
index 000000000000..dfe9eadf24a7
--- /dev/null
+++ b/ftp/curl/files/patch-lib::ftp.c
@@ -0,0 +1,11 @@
+--- lib/ftp.c.orig Tue May 13 23:31:00 2003
++++ lib/ftp.c Sun Jun 15 18:57:27 2003
+@@ -2055,7 +2055,7 @@
+ struct tm buffer;
+ tm = (struct tm *)localtime_r(&data->info.filetime, &buffer);
+ #else
+- tm = localtime((unsigned long *)&data->info.filetime);
++ tm = localtime((time_t *)&data->info.filetime);
+ #endif
+ /* format: "Tue, 15 Nov 1994 12:45:26 GMT" */
+ strftime(buf, BUFSIZE-1, "Last-Modified: %a, %d %b %Y %H:%M:%S GMT\r\n",
diff --git a/ftp/curl/files/patch-lib::hostip.c b/ftp/curl/files/patch-lib::hostip.c
new file mode 100644
index 000000000000..d913c91b37e4
--- /dev/null
+++ b/ftp/curl/files/patch-lib::hostip.c
@@ -0,0 +1,16 @@
+--- lib/hostip.c.orig Tue May 13 05:12:17 2003
++++ lib/hostip.c Sun Jun 15 18:44:13 2003
+@@ -497,11 +497,11 @@
+
+ /* now, shrink the allocated buffer to the size we actually need, which
+ most often is only a fraction of the original alloc */
+- newbuf=(char *)realloc(*buf, (int)bufptr-(int)(*buf));
++ newbuf=(char *)realloc(*buf, (int)(bufptr-*buf));
+
+ /* if the alloc moved, we need to adjust things again */
+ if(newbuf != *buf)
+- hostcache_fixoffset((struct hostent*)newbuf, (int)newbuf-(int)*buf);
++ hostcache_fixoffset((struct hostent*)newbuf, (int)(newbuf-*buf));
+
+ /* setup the return */
+ *buf = newbuf;
diff --git a/ftp/curl/files/patch-lib::urldata.h b/ftp/curl/files/patch-lib::urldata.h
new file mode 100644
index 000000000000..27d02fec0120
--- /dev/null
+++ b/ftp/curl/files/patch-lib::urldata.h
@@ -0,0 +1,11 @@
+--- lib/urldata.h.orig Fri May 9 00:39:29 2003
++++ lib/urldata.h Sun Jun 15 18:57:46 2003
+@@ -501,7 +501,7 @@
+ struct PureInfo {
+ int httpcode;
+ int httpversion;
+- long filetime; /* If requested, this is might get set. Set to -1 if
++ time_t filetime; /* If requested, this is might get set. Set to -1 if
+ the time was unretrievable */
+ long header_size; /* size of read header(s) in bytes */
+ long request_size; /* the amount of bytes sent in the request(s) */
diff --git a/ftp/curl/files/patch-src::main.c b/ftp/curl/files/patch-src::main.c
new file mode 100644
index 000000000000..52aa287b39f3
--- /dev/null
+++ b/ftp/curl/files/patch-src::main.c
@@ -0,0 +1,11 @@
+--- src/main.c.orig Mon May 12 05:45:57 2003
++++ src/main.c Sun Jun 15 18:58:50 2003
+@@ -3011,7 +3011,7 @@
+ closed, as is done above here */
+ if(config->remote_time && outs.filename) {
+ /* as libcurl if we got a time. Pretty please */
+- long filetime;
++ time_t filetime;
+ curl_easy_getinfo(curl, CURLINFO_FILETIME, &filetime);
+ if(filetime >= 0) {
+ struct utimbuf times;