summaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>2001-08-20 01:51:04 +0000
committerhubertf <hubertf@pkgsrc.org>2001-08-20 01:51:04 +0000
commit8744d9cdd3f9a455d17adc8b9d1b9bd39c1c3e71 (patch)
tree19133bf2fc1d28c2964a616c11eaa68a399a2549 /comms
parent99411dd29478e8ea76984f3eb6fdc97e63476975 (diff)
downloadpkgsrc-8744d9cdd3f9a455d17adc8b9d1b9bd39c1c3e71.tar.gz
#include <stdio.h> on NetBSD. It seems there's some (NetBSD!) systems
out there where this compiles without that header, and some where it fails.
Diffstat (limited to 'comms')
-rw-r--r--comms/plptools/patches/patch-ac23
1 files changed, 17 insertions, 6 deletions
diff --git a/comms/plptools/patches/patch-ac b/comms/plptools/patches/patch-ac
index 11d1517fe1f..ac0bd87a9cc 100644
--- a/comms/plptools/patches/patch-ac
+++ b/comms/plptools/patches/patch-ac
@@ -1,8 +1,19 @@
-$NetBSD: patch-ac,v 1.3 2001/04/04 08:53:44 skrll Exp $
+$NetBSD: patch-ac,v 1.4 2001/08/20 01:51:04 hubertf Exp $
---- plpftp/ftp.cc.orig Mon Jan 17 11:49:41 2000
-+++ plpftp/ftp.cc
-@@ -335,7 +335,7 @@
+--- 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;
@@ -11,7 +22,7 @@ $NetBSD: patch-ac,v 1.3 2001/04/04 08:53:44 skrll Exp $
strftime(dateBuff, 100, "%c", t);
cout << a.opAttr(attr);
cout << " " << dec << setw(10) << setfill(' ') << size;
-@@ -365,7 +365,7 @@
+@@ -365,7 +369,7 @@
else {
char dateBuff[100];
struct tm *t;
@@ -20,7 +31,7 @@ $NetBSD: patch-ac,v 1.3 2001/04/04 08:53:44 skrll Exp $
strftime(dateBuff, 100, "%c %Z", t);
cout << dateBuff << endl;
}
-@@ -457,7 +457,7 @@
+@@ -457,7 +461,7 @@
long attr = s.getDWord(8);
char dateBuff[100];
struct tm *t;