pkgsrc/comms/plp/patches/patch-ag
wiz cbbd0ce5d3 Fix build with gcc-4.5.
Mark as not MAKE_JOBS_SAFE (doesn't wait for library to be built before
linking it).
2011-12-19 13:44:07 +00:00

37 lines
1 KiB
Text

$NetBSD: patch-ag,v 1.3 2011/12/19 13:44:07 wiz Exp $
--- rfsv/rfsv16.cc.orig 1999-11-02 22:01:01.000000000 +0000
+++ rfsv/rfsv16.cc
@@ -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>
@@ -113,7 +114,7 @@ int rfsv16::dir(const char* dirName, buf
if (version != 2) return 1;
int status = a.getWord(2);
long size = a.getDWord(4);
- long date = a.getDWord(8);
+ time_t date = a.getDWord(8);
const char *s = a.getString(16);
a.discardFirstBytes(17+strlen(s));
@@ -238,7 +239,7 @@ int rfsv16::write(const char* localName,
}
unsigned char * buff = new unsigned char [RFSV_SENDLEN];
while (ip &&!ip.eof()) {
- ip.read(buff, RFSV_SENDLEN);
+ ip.read((char *)buff, RFSV_SENDLEN);
bufferStore tmp(buff, ip.gcount());
if (tmp.getLen() == 0) break;
bufferStore a;