summaryrefslogtreecommitdiff
path: root/net/netmap/files/patch-belgolib::files.c
blob: c5aab8d1dcc479c4892091bb64ded27e7aaa04c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- belgolib/files.c.orig	Sun Dec 15 14:54:27 2002
+++ belgolib/files.c	Sun Dec 15 14:54:27 2002
@@ -1,6 +1,7 @@
 #include <errno.h>
 #include <stdio.h>
 #include <assert.h>
+#include <iostream>
 
 #include "files.h"
 #include "debug.h"
@@ -16,7 +17,7 @@
 
 Infile::Infile() : ifstream() { }
 
-Infile::Infile(const string& file_name, int mode, bool fatal)
+Infile::Infile(const string& file_name, ios::openmode mode, bool fatal)
     : ifstream(file_name.c_str(), mode)
 {
 
@@ -38,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)