freebsd-ports/net/netmap/files/patch-belgolib::files.h
Edwin Groothuis 42f82ca6c0 Make net/netmap building on -current again
PR:		 ports/46267
Submitted by:	Kuang-che Wu <kcwu@kcwu.dyndns.org>
2002-12-20 21:07:52 +00:00

19 lines
596 B
C++

--- belgolib/files.h.orig Sun Dec 15 14:54:27 2002
+++ belgolib/files.h Sun Dec 15 14:54:27 2002
@@ -1,4 +1,5 @@
#include <fstream>
+using namespace std;
#ifndef __make_dep__
#include <string> //makedepend bug
@@ -15,8 +16,8 @@
class Infile : public ifstream {
public:
Infile();
- Infile(const string &, int mode=ios::in, bool=false);
- int Open(const string &, int mode=ios::in, bool=false);
+ Infile(const string &, ios::openmode mode=ios::in, bool=false);
+ int Open(const string &, ios::openmode mode=ios::in, bool=false);
protected:
int check_open() const;