summaryrefslogtreecommitdiff
path: root/comms/plptools/patches/patch-ac
blob: ac0bd87a9cc4ae9329fde6deabd3fafab5bfb445 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
$NetBSD: patch-ac,v 1.4 2001/08/20 01:51:04 hubertf Exp $

--- ftp.cc.orig	Mon Jan 17 12:49:41 2000
+++ ftp.cc	Mon Aug 20 03:45:51 2001
@@ -34,6 +34,10 @@
 #include <sys/stat.h>
 #include <signal.h>
 
+#ifdef __NetBSD__
+#include <stdio.h>
+#endif
+
 #include "defs.h"
 #include "ftp.h"
 #include "rfsv.h"
@@ -335,7 +339,7 @@
 				// never used to do this
 				char dateBuff[100];
                                	struct tm *t;
-                               	t = localtime(&time);
+                               	t = localtime((time_t *)&time);
                                	strftime(dateBuff, 100, "%c", t);
                                	cout << a.opAttr(attr);
                                	cout << " " << dec << setw(10) << setfill(' ') << size;
@@ -365,7 +369,7 @@
 			else {
 				char dateBuff[100];
 				struct tm *t;
-				t = localtime(&mtime);
+				t = localtime((time_t *)&mtime);
 				strftime(dateBuff, 100, "%c %Z", t);
 				cout << dateBuff << endl;
 			}
@@ -457,7 +461,7 @@
 					long attr = s.getDWord(8);
 					char dateBuff[100];
                                 	struct tm *t;
-                                	t = localtime(&date);
+                                	t = localtime((time_t *)&date);
                                 	strftime(dateBuff, 100, "%c", t);
                                 	cout << a.opAttr(attr);
                                 	cout << " " << dec << setw(10) << setfill(' ') << size;