mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
Fix LP64 bugs and bump PORTREVISION. This still detects the bogus
gethostbyaddr_r() "implementation" in libc, which may be causing problems in certain cases.
This commit is contained in:
parent
b95035a687
commit
bc7de3495f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=83087
@ -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} \
|
||||
|
11
ftp/curl/files/patch-lib::ftp.c
Normal file
11
ftp/curl/files/patch-lib::ftp.c
Normal file
@ -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",
|
16
ftp/curl/files/patch-lib::hostip.c
Normal file
16
ftp/curl/files/patch-lib::hostip.c
Normal file
@ -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;
|
11
ftp/curl/files/patch-lib::urldata.h
Normal file
11
ftp/curl/files/patch-lib::urldata.h
Normal file
@ -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) */
|
11
ftp/curl/files/patch-src::main.c
Normal file
11
ftp/curl/files/patch-src::main.c
Normal file
@ -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;
|
Loading…
Reference in New Issue
Block a user