summaryrefslogtreecommitdiff
path: root/net/netmap/files/patch-belgolib__files.c
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2014-05-04 15:31:11 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2014-05-04 15:31:11 +0000
commit25b9d76b40f20d0d455f69ffe5303e5e817a9f76 (patch)
treeb03158f29110fc0e98019b909efe07cea850881a /net/netmap/files/patch-belgolib__files.c
parentUpdate to tin 2.2.1 (diff)
- Pet portlint: rename patch files
Diffstat (limited to 'net/netmap/files/patch-belgolib__files.c')
-rw-r--r--net/netmap/files/patch-belgolib__files.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/net/netmap/files/patch-belgolib__files.c b/net/netmap/files/patch-belgolib__files.c
new file mode 100644
index 000000000000..39854e8c92ca
--- /dev/null
+++ b/net/netmap/files/patch-belgolib__files.c
@@ -0,0 +1,31 @@
+--- belgolib/files.c.orig 2010-01-06 08:00:52.000000000 +0900
++++ belgolib/files.c 2011-11-23 22:22:36.000000000 +0900
+@@ -17,8 +17,8 @@
+
+ Infile::Infile() : ifstream() { }
+
+-Infile::Infile(const string& file_name, int mode, bool fatal)
+- : ifstream(file_name.c_str(), (std::_Ios_Openmode)mode)
++Infile::Infile(const string& file_name, ios::openmode mode, bool fatal)
++ : ifstream(file_name.c_str(), (std::ios_base::openmode)mode)
+ {
+
+ if(cdb>d_list)
+@@ -39,7 +39,7 @@
+ }
+
+
+-int Infile::Open(const string & file_name, int mode, bool fatal)
++int Infile::Open(const string & file_name, ios::openmode mode, bool fatal)
+ {
+
+ if(cdb>d_list)
+@@ -49,7 +49,7 @@
+ //file is open, close it first
+ close();
+
+- open(file_name.c_str(), (std::_Ios_Openmode)mode);
++ open(file_name.c_str(), (std::ios_base::openmode)mode);
+
+ if(int error_nr = check_open()) {
+ if(cdb>d_list)