freebsd-ports/archivers/libcabinet/files/patch-cfreader.cpp
Edwin Groothuis 8a8b31d05c [patch] Unbreak port: archivers/libcabinet
This port did not build with gcc 3.3.1. I also fixed a
	possible buffer overflow (they used gets() to read from
	stdin).

	Please review the patch file ``patch-cftypes.cpp'' with
	extra care, since I am not sure whether this makes sense
	(2 positions in the file, marked with ``TODO'' - thanks.

Also added some lines in cftypes.cpp to overcome the absence of
values.h on -current.

PR:		ports/55767
Submitted by:	Simon Barner <barner@in.tum.de>
2003-08-31 13:09:31 +00:00

11 lines
303 B
C++

--- cfreader.cpp.orig Tue Aug 19 18:28:46 2003
+++ cfreader.cpp Tue Aug 19 18:29:10 2003
@@ -31,6 +31,8 @@
#include "cfheader.h"
#include "cfreader.h"
+using std::ios;
+
////////////////////////////////////////****************************************
int cabinet_reader::open(const char* fname)