summaryrefslogtreecommitdiff
path: root/ftp/curl/files/patch-lib::ftp.c
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/files/patch-lib::ftp.c
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/files/patch-lib::ftp.c')
-rw-r--r--ftp/curl/files/patch-lib::ftp.c11
1 files changed, 11 insertions, 0 deletions
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",