summaryrefslogtreecommitdiff
path: root/www/curl
diff options
context:
space:
mode:
authormycroft <mycroft>2002-07-19 04:23:48 +0000
committermycroft <mycroft>2002-07-19 04:23:48 +0000
commit8d31f384f15524aad99e72c7706dbe56bd2ed7a9 (patch)
tree69d34a3993c9e27594d9b53617e79480560733bf /www/curl
parent16383083c2e0c5a596ae2c697a117550b57c2246 (diff)
downloadpkgsrc-8d31f384f15524aad99e72c7706dbe56bd2ed7a9.tar.gz
Fix LP64 botch.
Diffstat (limited to 'www/curl')
-rw-r--r--www/curl/distinfo3
-rw-r--r--www/curl/patches/patch-ab20
2 files changed, 22 insertions, 1 deletions
diff --git a/www/curl/distinfo b/www/curl/distinfo
index 052faa3d760..4d10a1ae7c8 100644
--- a/www/curl/distinfo
+++ b/www/curl/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.12 2002/06/11 12:35:13 agc Exp $
+$NetBSD: distinfo,v 1.13 2002/07/19 04:23:48 mycroft Exp $
SHA1 (curl-7.9.7.tar.gz) = 6fcb23be788984bcfca7debe5f307ec65fb56101
Size (curl-7.9.7.tar.gz) = 717489 bytes
SHA1 (patch-aa) = 5990fe1f4d583847751549f2e647f23b2bbbbe96
+SHA1 (patch-ab) = 196289d28e482174be9432ddca4e97d09b65d6ca
diff --git a/www/curl/patches/patch-ab b/www/curl/patches/patch-ab
new file mode 100644
index 00000000000..514ffb2a7e1
--- /dev/null
+++ b/www/curl/patches/patch-ab
@@ -0,0 +1,20 @@
+$NetBSD: patch-ab,v 1.1 2002/07/19 04:23:48 mycroft Exp $
+
+--- ftp.c.orig Mon Apr 29 11:57:25 2002
++++ ftp.c Fri Jul 19 04:22:35 2002
+@@ -1576,12 +1576,13 @@
+
+ #ifdef HAVE_STRFTIME
+ if(data->set.get_filetime && data->info.filetime) {
++ time_t filetime = data->info.filetime;
+ struct tm *tm;
+ #ifdef HAVE_LOCALTIME_R
+ struct tm buffer;
+- tm = (struct tm *)localtime_r(&data->info.filetime, &buffer);
++ tm = (struct tm *)localtime_r(&filetime, &buffer);
+ #else
+- tm = localtime((unsigned long *)&data->info.filetime);
++ tm = localtime(&filetime);
+ #endif
+ /* format: "Tue, 15 Nov 1994 12:45:26 GMT" */
+ strftime(buf, BUFSIZE-1, "Last-Modified: %a, %d %b %Y %H:%M:%S %Z\r\n",