summaryrefslogtreecommitdiff
path: root/comms/plp/patches/patch-ah
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2011-12-19 13:44:07 +0000
committerwiz <wiz@pkgsrc.org>2011-12-19 13:44:07 +0000
commit091cd93cb6e9dd785b93071e42cc3117b040cb7d (patch)
treeaee16a3d703600b9ba373ba228ae0bc713dd34c4 /comms/plp/patches/patch-ah
parentd14bcf8a9370b28931c2ec72b95c88f177d30418 (diff)
downloadpkgsrc-091cd93cb6e9dd785b93071e42cc3117b040cb7d.tar.gz
Fix build with gcc-4.5.
Mark as not MAKE_JOBS_SAFE (doesn't wait for library to be built before linking it).
Diffstat (limited to 'comms/plp/patches/patch-ah')
-rw-r--r--comms/plp/patches/patch-ah25
1 files changed, 20 insertions, 5 deletions
diff --git a/comms/plp/patches/patch-ah b/comms/plp/patches/patch-ah
index c49a1f1e5d9..c50742ba550 100644
--- a/comms/plp/patches/patch-ah
+++ b/comms/plp/patches/patch-ah
@@ -1,8 +1,23 @@
-$NetBSD: patch-ah,v 1.2 2004/09/08 12:47:39 wiz Exp $
+$NetBSD: patch-ah,v 1.3 2011/12/19 13:44:07 wiz Exp $
---- rfsv/rfsv32.cc.orig 1999-11-02 22:12:47.000000000 +0100
+--- rfsv/rfsv32.cc.orig 1999-11-02 21:12:47.000000000 +0000
+++ rfsv/rfsv32.cc
-@@ -183,7 +183,7 @@ int rfsv32::dir(const char* dirName, buf
+@@ -19,10 +19,11 @@
+ //
+ // e-mail philip.proudman@btinternet.com
+
+-#include <stream.h>
++#include <iostream>
++using namespace std;
+ #include <stdlib.h>
+-#include <fstream.h>
+-#include <iomanip.h>
++#include <fstream>
++#include <iomanip>
+ #include <time.h>
+ #include <string.h>
+
+@@ -183,7 +184,7 @@ int rfsv32::dir(const char* dirName, buf
us += modLow;
us /= 1000000;
us -= (1970*365 + 490)*60*60*24;
@@ -11,7 +26,7 @@ $NetBSD: patch-ah,v 1.2 2004/09/08 12:47:39 wiz Exp $
char dateBuff[100];
struct tm *t;
t = gmtime(&date);
-@@ -275,10 +275,10 @@ void rfsv32::opErr(long status) {
+@@ -275,10 +276,10 @@ void rfsv32::opErr(long status) {
case BAD_HANDLE:
cerr << "BAD_HANDLE";
break;
@@ -24,7 +39,7 @@ $NetBSD: patch-ah,v 1.2 2004/09/08 12:47:39 wiz Exp $
cerr << "UNDERFLOW";
break;
case ALREADY_EXISTS:
-@@ -455,7 +455,7 @@ int rfsv32::write(const char* localName,
+@@ -455,7 +456,7 @@ int rfsv32::write(const char* localName,
}
unsigned char * buff = new unsigned char [RFSV_SENDLEN];
while (ip &&!ip.eof()) {